{ "info": { "author": "James Hargreaves", "author_email": "james.hargreaves@qoobic.co.uk", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries", "Topic :: Utilities" ], "description": "django-bootstrap3-datepicker\n============================\n\nThis package is a fork of django-bootstrap3-datetimepicker v2.3, available here:\n\n\n\nWhere the above uses the Bootstrap v3 datetimepicker, this package uses Bootstrap v3 datepicker widget version 1.6.1, provided by the following project:\n\n\n\nThe correct formatting options for dates can be found here:\n\n\n\nIt has only been tested with Bootstrap3.\n\nInstall\n-------\n\n- Run ``pip install django-bootstrap3-datepicker``\n- Add ``'bootstrap3_datepicker'`` to your ``INSTALLED_APPS``\n\nExample\n-------\n\nforms.py\n \n::\n\n from django import forms\n\n from bootstrap3_datepicker.fields import DatePickerField\n from bootstrap3_datepicker.widgets import DatePickerInput\n\n\n class ToDoForm(forms.Form):\n # normal date field with no picker\n date_1 = forms.DateField()\n\n # date field with default picker, uses locale default\n # date format for display and decode\n date_2 = forms.DateField(widget=DatePickerInput())\n\n # date field with picker, uses specified format for display,\n # decode is via locale default input_formats so format specified\n # must match one\n date_3 = forms.DateField(widget=DatePickerInput(format=\"%Y-%m-%d\"))\n\n # date field with picker, uses specified format for display and\n # input_formats for decode\n date_4 = forms.DateField(input_formats=[\"%B %Y\"],\n widget=DatePickerInput(format=\"%B %Y\",\n attrs={\"placeholder\": \"Placeholder text\"}))\n options={\"minViewMode\": \"months\"}))\n\n # date picker field, uses locale default date format for display\n # and decode, same as date_2\n date_5 = DatePickerField()\n\n # date field with picker, uses specified format for display and\n # decode, same as date_3\n date_6 = DatePickerField(input_formats=[\"%Y-%m-%d\"])\n\n # custom format with picker attrs and options specified, uses specified format\n # for display and decode, same as date_4\n date_7 = DatePickerField(input_formats=[\"%B %Y\"],\n widget_attrs={\"placeholder\": \"Placeholder text\"})\n widget_options={\"minViewMode\": \"months\"})\n\nThe ``DatePickerInput`` provides the integration with the JavaScript datepicker - the ``options`` specified will be passed directly to the JavaScript datepicker. The available ``options`` are explained in the following documents:\n\n\n\nThe ``DatePickerField`` has been provided as a utility for a common usage. When the ``DatePickerInput`` is specified as a widget on a ``DateField`` and a non-standard date format is required, the ``format`` for the JavaScript datapicker and ``input_formats`` for the ``DateField`` itself should both be specified and match. On the ``DatePickerField`` the ``input_formats`` provides both the display and decode formats. The ``widget_attrs`` are passed as attributes on the widget, the ``widget_options`` are passed directly to the JavaScript datepicker.\n\ntemplate.html\n\n::\n\n \n \n \n \n \n \n \n {{ form.media }}\n \n \n \n
\n {% for field in form.visible_fields %}\n
\n {{ field.label_tag }}\n {{ field }}\n
\n {{ field.help_text }}\n
\n
\n {{ field.errors }}\n
\n
\n {% endfor %}\n {% for hidden in form.hidden_fields %}\n {{ hidden }}\n {% endfor %}\n {% csrf_token %}\n
\n \n
\n
\n \n \n\nBootstrap3 and jQuery have to be included along with ``{{ form.media }}``.\n\nRelease Notes\n-------------\n\nv0.4.1\n\n- Removed symlink in static directory and renamed 1.6.1 directory to replace it (pip doesn't publish symlinks as expected).\n\nv0.4.0\n\n- Update to bootstrap-datepicker version 1.6.1\n- Use minified versions of the libraries (sourcemaps included)\n\nv0.3.1\n\n- Fix issue specifying attrs/options when no input_formats are specified.\n\nv0.3\n\n- Added support for widget attrs to DatePickerField.\n\nv0.2\n\n- Documentation fixes.\n\nv0.1\n\n- Initial release.\n\nRequirements\n------------\n\n- Python >= 2.7\n- Django >= 1.5\n- Bootstrap >= 3.0", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/qoobic/django-bootstrap3-datepicker.git", "keywords": null, "license": "Apache License 2.0", "maintainer": null, "maintainer_email": null, "name": "django-bootstrap3-datepicker", "package_url": "https://pypi.org/project/django-bootstrap3-datepicker/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-bootstrap3-datepicker/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/qoobic/django-bootstrap3-datepicker.git" }, "release_url": "https://pypi.org/project/django-bootstrap3-datepicker/0.4.1/", "requires_dist": null, "requires_python": null, "summary": "Bootstrap3 compatible datepicker for Django projects.", "version": "0.4.1" }, "last_serial": 2353663, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "3fba0f33621964c8114fc35f7b394687", "sha256": "43e05dae213d6bba10570f055ce5e94ae69663324fddcc03d8aff1e72c8aa56d" }, "downloads": -1, "filename": "django-bootstrap3-datepicker-0.1.tar.gz", "has_sig": false, "md5_digest": "3fba0f33621964c8114fc35f7b394687", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36550, "upload_time": "2014-12-12T17:33:36", "url": "https://files.pythonhosted.org/packages/34/48/20e203d3d9a2b04a93765c84714debcf2acaa838e13f929a989bc4581e90/django-bootstrap3-datepicker-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "bdccfc376c6ebabe15347d481ba11552", "sha256": "139f4546b5f51e9d0d8fce14d5145839a51feb09c99627ee4a4358083c0e62c1" }, "downloads": -1, "filename": "django-bootstrap3-datepicker-0.2.tar.gz", "has_sig": false, "md5_digest": "bdccfc376c6ebabe15347d481ba11552", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36986, "upload_time": "2014-12-12T17:39:32", "url": "https://files.pythonhosted.org/packages/8c/cf/579499283d705949edfd960763991d2fcc2e2ff160f6e19102f35118e6d6/django-bootstrap3-datepicker-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "1873dd761a59d871284a76b6940ef0ab", "sha256": "f556b5ced948a1c92e5b9e622a42cf7519bd074690b13a221c2e093b9b9b9afc" }, "downloads": -1, "filename": "django-bootstrap3-datepicker-0.3.tar.gz", "has_sig": false, "md5_digest": "1873dd761a59d871284a76b6940ef0ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37085, "upload_time": "2014-12-16T15:54:38", "url": "https://files.pythonhosted.org/packages/92/e3/fa661ef77f75357e97a690e9697444de3ea3bf1097e458158da8751365a1/django-bootstrap3-datepicker-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "e1d03c82c8e8d3ff2d98d4e6c493d150", "sha256": "4e699b9997575c2cfcdb7930ab7c2e74606e40b7efc62f0aad4521be031b6f92" }, "downloads": -1, "filename": "django-bootstrap3-datepicker-0.3.1.tar.gz", "has_sig": false, "md5_digest": "e1d03c82c8e8d3ff2d98d4e6c493d150", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37130, "upload_time": "2014-12-16T16:38:12", "url": "https://files.pythonhosted.org/packages/69/23/8ed7f1030fe5944d7c1a6c9cd2cf5b142a78edd399600126a313d73725b5/django-bootstrap3-datepicker-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "fb2a034ec99be6c1853160c3a95592a3", "sha256": "b1df134e49da79185e904e2c1bef4c180e92adae173125210b1f06d1cdb50edc" }, "downloads": -1, "filename": "django-bootstrap3-datepicker-0.4.0.tar.gz", "has_sig": false, "md5_digest": "fb2a034ec99be6c1853160c3a95592a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51618, "upload_time": "2016-09-19T20:52:44", "url": "https://files.pythonhosted.org/packages/5e/77/ee6049ee816f6c80b988352db346d1e7619451f307e67875d086eda63d6c/django-bootstrap3-datepicker-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "81d23a07df658a23524c6f1439042a9d", "sha256": "b431e86091874fbab2ef4d799d38bb8b84384211907c0d36ce5c98b7a4388b4a" }, "downloads": -1, "filename": "django-bootstrap3-datepicker-0.4.1.tar.gz", "has_sig": false, "md5_digest": "81d23a07df658a23524c6f1439042a9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51723, "upload_time": "2016-09-20T20:01:07", "url": "https://files.pythonhosted.org/packages/71/f6/3b1a21b629eba281c017919b7931dcf89c70b7dc9f453093b2596241f439/django-bootstrap3-datepicker-0.4.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "81d23a07df658a23524c6f1439042a9d", "sha256": "b431e86091874fbab2ef4d799d38bb8b84384211907c0d36ce5c98b7a4388b4a" }, "downloads": -1, "filename": "django-bootstrap3-datepicker-0.4.1.tar.gz", "has_sig": false, "md5_digest": "81d23a07df658a23524c6f1439042a9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51723, "upload_time": "2016-09-20T20:01:07", "url": "https://files.pythonhosted.org/packages/71/f6/3b1a21b629eba281c017919b7931dcf89c70b7dc9f453093b2596241f439/django-bootstrap3-datepicker-0.4.1.tar.gz" } ] }