{ "info": { "author": "Fabian Wenzelmann", "author_email": "fabianwenzelmann@posteo.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "django-bootstrap3-datepicker\n============================\n\nDatepicker that supports the selection of multiple dates for Django,\nusing Bootstrap Twitter.\n\nThe aim of this package is to provide widgets and form fields for Django\nthat use\n`bootstrap-datepicker `__.\n\nThere are some packages that already try to do this, however I've never\nfound one with working multidate support. The package's homepage can be\nfound\n`here `__\non GitHub.\n\nI'll slightly follow the package as provide\n`here `__.\nThis package supports single date selection, mine will cover multidate\nselection. Because that's not so much change I'll actually copy a lot\nfrom this code base.\n\nNotice\n======\n\nThis package does what I want for a specific purpose, if you have any\nsuggestions contact me! This package is still in an early beta.\n\nCredits\n=======\n\nI've used some libraries and I wish to thank the people who wrote them!\n\\* Of course the `Django `__ developers\n\\*\n`bootstrap3\\_datepicker `__\n\\* `JavaScript Date\nFormat `__\n\nAnd all the people I've forgotten ;).\n\nLicense\n=======\n\nLicensed under the `Apache License, Version\n2.0 `__.\n\nExample Usage\n=============\n\nThere is a small demo included in this package. However make sure that\n``'django_bootstrap3_multidatepicker'`` and ``'bootstrap3'`` are\ncontained in your ``'INSTALLED_APPS'``.\n\nYou should also change the bootstrap3 default behaviour and take care\nthat ``'javascript_in_head'`` is set to ``True``, i.e. put in your\n*settings.py*:\n\n.. code:: python\n\n BOOTSTRAP3 = {\n 'javascript_in_head': True,\n }\n\nThere is a widget called ``BootstrapDatepickerInput`` and a form field\n``DateListField``. They should be used together, otherwise I can't\nguarantee anything ;).\n\nThe ``DateListField`` stores the dates as python list of\n``datetime.date`` objects. The hidden input stores a json list\ncontaining all the selected dates in the form ``\"yyyy/mm/dd\"``, e.g.\n``\"2016/02/22\"``. It's method ``to_python`` gets the string from the\nhidden input, tries to parse them in the given format and returns the\nlist of all dates.\n\nHere's a small example that displays a calendar and lets the user select\nthe inputs.\n\n.. code:: python\n\n from django import forms\n\n from from django_bootstrap3_multidatepicker.django_bootstrap3_multidatepicker import widgets, fields import widgets, fields\n\n class YourForm(forms.Form):\n dates = fields.DateListField(label='Select Dates')\n\nAdding a template etc. will give you a calendar like this:\n\n.. figure:: doc/imgs/widget_example.png\n :alt: Example of the widget\n\n Example of the widget\nA view could look like this:\n\n.. code:: python\n\n class MultiDateForm(FormView):\n template_name = YourTemplate\n form_class = YourForm\n\n def form_valid(self, form):\n dates = form.cleaned_data['dates']\n return render(self.request, YourSuccessTemplate, {'dates': dates})\n\nIn YourSuccessTemplate you can do something like this:\n\n.. code:: html\n\n The following dates were selected:\n\n {% if dates %}\n
    \n {% for date in dates %}\n
  • {{ date|date:\"SHORT_DATE_FORMAT\" }}
  • \n {% endfor %}\n
\n {% endif %}\n\nYour result will look something like this: |Success page|\n\n.. |Success page| image:: doc/imgs/success.png", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/FabianWe/django-bootstrap3-multidatepicker", "keywords": "django calendar multidate", "license": "Apache License 2.0", "maintainer": null, "maintainer_email": null, "name": "django-bootstrap3-multidatepicker", "package_url": "https://pypi.org/project/django-bootstrap3-multidatepicker/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-bootstrap3-multidatepicker/", "project_urls": { "Homepage": "https://github.com/FabianWe/django-bootstrap3-multidatepicker" }, "release_url": "https://pypi.org/project/django-bootstrap3-multidatepicker/0.1.5/", "requires_dist": [ "Django", "django-bootstrap3" ], "requires_python": null, "summary": "Datepicker that supports the selection of multiple dates for Django, using Bootstrap Twitter.", "version": "0.1.5" }, "last_serial": 2878398, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "9cb8f639f92dd071c331ddb05840668e", "sha256": "45df94aacba1e27d339f96775f223cf75bd0216f4581949ccb3e1cd0e6a5e6a4" }, "downloads": -1, "filename": "django-bootstrap3-multidatepicker-0.1.1.tar.gz", "has_sig": false, "md5_digest": "9cb8f639f92dd071c331ddb05840668e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3853, "upload_time": "2016-03-03T18:17:58", "url": "https://files.pythonhosted.org/packages/d5/5c/931bb9439451ae3a280e58fd6854a26dc5a6cbdb2f53654ee60a85cea51c/django-bootstrap3-multidatepicker-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "0e293201a181e7fa639ce17b93184dec", "sha256": "ed5799c5aca34daa74b8281176af09c4a3bf101f6f2af62fba0ecc9eb014cc9e" }, "downloads": -1, "filename": "django-bootstrap3-multidatepicker-0.1.2.tar.gz", "has_sig": false, "md5_digest": "0e293201a181e7fa639ce17b93184dec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 45780, "upload_time": "2016-03-03T18:32:15", "url": "https://files.pythonhosted.org/packages/f1/00/bfccaa7d825b9baf82673622fcfdffd7bb92adf5f59e4ea8dec1429ee22d/django-bootstrap3-multidatepicker-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "f2a5d92388da7af1e7a9efe40f3184ef", "sha256": "dce32b9d4baa8728a8deb27b3bc61a0d75a2e027aa033b4bd2756dd3cd6e381f" }, "downloads": -1, "filename": "django-bootstrap3-multidatepicker-0.1.3.tar.gz", "has_sig": false, "md5_digest": "f2a5d92388da7af1e7a9efe40f3184ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 45788, "upload_time": "2016-03-03T19:23:13", "url": "https://files.pythonhosted.org/packages/96/52/2b5d056820fb95186a3111f76485b7f201fa54e1bcb2ea498dba93f37261/django-bootstrap3-multidatepicker-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "bb18a6d7f1b07e8fdcec650082b1d802", "sha256": "65d5afcf8644961d977b8f6b3b2f8bcb220cb6c7097c07b1e92c0d4570783cb0" }, "downloads": -1, "filename": "django-bootstrap3-multidatepicker-0.1.4.tar.gz", "has_sig": false, "md5_digest": "bb18a6d7f1b07e8fdcec650082b1d802", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 45780, "upload_time": "2016-03-03T19:29:30", "url": "https://files.pythonhosted.org/packages/2a/96/ec2dc0edfd32b3a691d1a7942e195af6821ec4fcf2422726ea1c2d9ab796/django-bootstrap3-multidatepicker-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "71affd58da67bdceafb32a035c4ba976", "sha256": "9e6513dc2c24080e7d0caf87b54bdba74a21bedc8a643540371e12d90a863c1a" }, "downloads": -1, "filename": "django_bootstrap3_multidatepicker-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "71affd58da67bdceafb32a035c4ba976", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 94719, "upload_time": "2017-05-16T15:38:18", "url": "https://files.pythonhosted.org/packages/ac/82/214ccdcf833a1e437d074f55da583eaf497d5f7badcdecf9a7f6a7e2e62a/django_bootstrap3_multidatepicker-0.1.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "36591c4efcf7bf3f1554fc93ded63b2d", "sha256": "1ef24a20efe6629e2b3f4259e877f87a8ba51bd05125d887abcb349045fc8b93" }, "downloads": -1, "filename": "django-bootstrap3-multidatepicker-0.1.5.tar.gz", "has_sig": false, "md5_digest": "36591c4efcf7bf3f1554fc93ded63b2d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46062, "upload_time": "2017-05-16T15:38:21", "url": "https://files.pythonhosted.org/packages/ad/41/8a1f28b0fcad3104c64eb2457b5131739345932eaf75a9980f020bf0051e/django-bootstrap3-multidatepicker-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "71affd58da67bdceafb32a035c4ba976", "sha256": "9e6513dc2c24080e7d0caf87b54bdba74a21bedc8a643540371e12d90a863c1a" }, "downloads": -1, "filename": "django_bootstrap3_multidatepicker-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "71affd58da67bdceafb32a035c4ba976", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 94719, "upload_time": "2017-05-16T15:38:18", "url": "https://files.pythonhosted.org/packages/ac/82/214ccdcf833a1e437d074f55da583eaf497d5f7badcdecf9a7f6a7e2e62a/django_bootstrap3_multidatepicker-0.1.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "36591c4efcf7bf3f1554fc93ded63b2d", "sha256": "1ef24a20efe6629e2b3f4259e877f87a8ba51bd05125d887abcb349045fc8b93" }, "downloads": -1, "filename": "django-bootstrap3-multidatepicker-0.1.5.tar.gz", "has_sig": false, "md5_digest": "36591c4efcf7bf3f1554fc93ded63b2d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46062, "upload_time": "2017-05-16T15:38:21", "url": "https://files.pythonhosted.org/packages/ad/41/8a1f28b0fcad3104c64eb2457b5131739345932eaf75a9980f020bf0051e/django-bootstrap3-multidatepicker-0.1.5.tar.gz" } ] }