{ "info": { "author": "Kamo Petrosyan", "author_email": "kamo@haikson.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "django-datetime-widget-fa\n=========================\n\n``django-datetime-widget-fa`` is a simple and clean picker widget for DateField, Timefiled and DateTimeField in Django framework. It is based on `Bootstrap datetime picker\n`_, supports both Bootstrap 3 and Bootstrap 2.\n\n``django-datetime-widget-fa`` is perfect when you use a DateField, TimeField or DateTimeField in your model/form where is necessary to display the corresponding picker with a specific date/time format. Now it supports django localization.\n\nAvailable widgets\n-----------------\n\n* **DateTimeWidget** : display the input with the calendar and time picker.\n* **DateWidget** : display the input only with the calendar picker.\n* **TimeWidget** : display the input only with the time picker.\n\n`See Demo page `_\n\nRequirements\n------------\n* `Bootstrap `_ 2.0.4+ and 3.2.0\n* `jQuery `_ 1.7.1+\n\nScreenshots\n===========\n\n* Decade year view\n\n.. image:: https://raw.github.com/smalot/bootstrap-datetimepicker/master/screenshot/standard_decade.png\n\nThis view allows the user to select the year in a range of 10 years.\n\n* Year view\n\n.. image:: https://raw.github.com/smalot/bootstrap-datetimepicker/master/screenshot/standard_year.png\n\nThis view allows the user to select the month in the selected year.\n\n* Month view\n\n.. image:: https://raw.github.com/smalot/bootstrap-datetimepicker/master/screenshot/standard_month.png\n\nThis view allows the user to select the day in the selected month.\n\n* Day view\n\n.. image:: https://raw.github.com/smalot/bootstrap-datetimepicker/master/screenshot/standard_day.png\n\nThis view allows the user to select the hour in the selected day.\n\n* Hour view\n\n.. image:: https://raw.github.com/smalot/bootstrap-datetimepicker/master/screenshot/standard_hour.png\n\nThis view allows the user to select the preset of minutes in the selected hour.\nThe range of 5 minutes (by default) has been selected to restrict button quantity to an acceptable value, but it can be overwritten by the minuteStep property.\n\n* Day view - meridian\n\n.. image:: https://raw.github.com/smalot/bootstrap-datetimepicker/master/screenshot/standard_day_meridian.png\n\nMeridian is supported in both the day and hour views.\nTo use it, just enable the showMeridian property.\n\n* Hour view - meridian\n\n.. image:: https://raw.github.com/smalot/bootstrap-datetimepicker/master/screenshot/standard_hour_meridian.png\n\n\nInstallation\n------------\n\n#. Install django-datetime-widget-fa using pip. For example::\n\n pip install django-datetime-widget-fa\n\n#. Add ``datetimewidget`` to your INSTALLED_APPS.\n\nIf you want to use localization:\n\n#. Set USE_L10N = True, USE_TZ = True and USE_I18N = True in settings.py\n\n#. Add 'django.middleware.locale.LocaleMiddleware' to MIDDLEWARE_CLASSES in settings.py\n\n#. When you create the widget add usel10n = True like attribute : DateTimeWidget(usel10n=True)\n\nBasic Configuration\n-------------------\n#. Create your model-form and set DateTimeWidget widget to your DateTimeField ::\n\n from datetimewidget.widgets import DateTimeWidget\n\n class yourForm(forms.ModelForm):\n class Meta:\n model = yourModel\n widgets = {\n #Use localization and bootstrap 3\n 'datetime': DateTimeWidget(attrs={'id':\"yourdatetimeid\"}, usel10n = True, bootstrap_version=3)\n }\n\n#. Download `twitter bootstrap `_ to your static file folder.\n\n#. Add in your form template links to jquery, bootstrap and form.media::\n\n \n ....\n \n \n \n {{ form.media }}\n\n ....\n \n \n
\n {% csrf_token %}\n {{ form.as_table }}\n \n
\n \n\n\n#. Optional: you can add an option dictionary to DatetimeWidget to customize your input. For example, to have date and time with meridian::\n\n\n dateTimeOptions = {\n 'format': 'dd/mm/yyyy HH:ii P',\n 'autoclose': True,\n 'showMeridian' : True\n }\n widgets = {\n #NOT Use localization and set a default format\n 'datetime': DateTimeWidget(options = dateTimeOptions)\n }\n\n!!! If you add 'format' into options and in the same time set usel10n as True the first one is ignored. !!!\n\nOptions\n=======\nThe options attribute can accept the following:\n* format\n\nString. Default: 'dd/mm/yyyy hh:ii'\n\nThe date format, combination of P, hh, HH , ii, ss, dd, yy, yyyy.\n\n * P : meridian in upper case ('AM' or 'PM') - according to locale file\n * ss : seconds, 2 digits with leading zeros\n * ii : minutes, 2 digits with leading zeros\n * hh : hour, 2 digits with leading zeros - 24-hour format\n * HH : hour, 2 digits with leading zeros - 12-hour format\n * dd : day of the month, 2 digits with leading zeros\n * yy : two digit representation of a year\n * yyyy : full numeric representation of a year, 4 digits\n\n* weekStart\n\nInteger. Default: 0\n\nDay of the week start. '0' (Sunday) to '6' (Saturday)\n\n* startDate\n\nDate. Default: Beginning of time\n\nThe earliest date that may be selected; all earlier dates will be disabled.\n\n* endDate\n\nDate. Default: End of time\n\nThe latest date that may be selected; all later dates will be disabled.\n\n* daysOfWeekDisabled\n\nString. Default: ''\n\nDays of the week that should be disabled. Values are 0 (Sunday) to 6 (Saturday). Multiple values should be comma-separated. Example: disable weekends: '0,6'.\n\n* autoclose\n\nString. Default: 'true'\n\nWhether or not to close the datetimepicker immediately when a date is selected.\n\n* startView\n\nInteger. Default: 2\n\nThe view that the datetimepicker should show when it is opened.\nAccepts values of :\n * '0' for the hour view\n * '1' for the day view\n * '2' for month view (the default)\n * '3' for the 12-month overview\n * '4' for the 10-year overview. Useful for date-of-birth datetimepickers.\n\n* minView\n\nInteger. Default: 0\n\nThe lowest view that the datetimepicker should show.\n\n* maxView\n\nInteger. Default: 4\n\nThe highest view that the datetimepicker should show.\n\n* todayBtn\n\nBoolean. Default: False\n\nIf true , displays a \"Today\" button at the bottom of the datetimepicker to select the current date. If true, the \"Today\" button will only move the current date into view.\n\n* todayHighlight\n\nBoolean. Default: False\n\nIf true, highlights the current date.\n\n* minuteStep\n\nInteger. Default: 5\n\nThe increment used to build the hour view. A button is created for each minuteStep minutes.\n\n* pickerPosition\n\nString. Default: 'bottom-right' (other supported value : 'bottom-left')\n\nThis option allows you to place the picker just under the input field for the component implementation instead of the default position which is at the bottom right of the button.\n\n* showMeridian\n\nBoolean. Default: False\n\nThis option will enable meridian views for day and hour views.\n\n* clearBtn\n\nBoolean. Default: False\n\nIf true, displays a \"Clear\" button at the rigth side of the input value.\n\nCHANGELOG\n---------\n* 0.9.3V\n \n * FIX #48 \n * Python 3 support \n\n* 0.9.2V\n\n * FIX #46\n\n* 0.9.1V\n\n * python options are correct converted to the javascript options.\n\n * FIX #38 #40.\n\n * code refactor and bug fixes.\n\n* 0.9V\n \n * Update bootstrap datetime picker to the last version.\n \n * CLOSE #20 (support bootstrap 2 and 3).\n \n * CLOSE #17 TimeWidget.\n \n * CLOSE #16 DateWidget.\n \n * new clear button at the rigth side of the input value.\n \n * add dateTimeExample django project.\n\n* 0.6V\n \n * Add Clear button\n \n * Fix TypeError bug\n \n * Support localization\n \n * Update static file with last commit of bootstrap-datetime-picker\n \n * update js lib, native localization, thanks to @quantum13\n \n * autoclose is true by default\n\nContribute\n----------\n\n1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug. There is a `Contributor Friendly`_ tag for issues that should be ideal for people who are not very familiar with the codebase yet.\n \n * If you feel uncomfortable or uncertain about an issue or your changes, feel free to email @haikson and he will happily help you via email, Skype, remote pairing or whatever you are comfortable with.\n\n2. Fork develop branch from `the repository`_ on GitHub to start making your changes to the **develop** branch (or branch off of it).\n3. Please show that the bug was fixed or that the feature works as expected.\n4. Send a pull request and bug the maintainer until it gets merged and published. :)\n5. Your changes will be released on the next version of django_datetime_widget!\n\n.. _`the repository`: https://github.com/Haikson/django-datetime-widget-fa\n.. _Contributor Friendly: https://github.com/Haikson/django-datetime-widget-fa/issues?direction=desc&labels=Contributor+Friendly&page=1&sort=updated&state=open\n\n\nTODO\n----\n#. widget for DateTime range.", "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/Haikson/django-datetime-widget-fa", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-datetime-widget-fa", "package_url": "https://pypi.org/project/django-datetime-widget-fa/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-datetime-widget-fa/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Haikson/django-datetime-widget-fa" }, "release_url": "https://pypi.org/project/django-datetime-widget-fa/0.10.0/", "requires_dist": null, "requires_python": null, "summary": "Django-datetime-widget is a simple and clean widget for DateField, Timefiled and DateTimeField in Django framework. It is based on Bootstrap datetime picker, supports both Bootstrap 3 and Bootstrap 2, and supports Font-Awesome. Special thanks to Alfredo Saglimbeni [https://github.com/asaglimbeni] for django-datetime-widget", "version": "0.10.0" }, "last_serial": 1970712, "releases": { "0.10.0": [ { "comment_text": "", "digests": { "md5": "304e914c63f054c0496a2167db9d5de3", "sha256": "b8b4f176136549d75aadd669aeb3f66ba201b5829fe60327c6211b1c8ad19b1f" }, "downloads": -1, "filename": "django-datetime-widget-fa-0.10.0.tar.gz", "has_sig": false, "md5_digest": "304e914c63f054c0496a2167db9d5de3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61658, "upload_time": "2016-02-23T00:46:54", "url": "https://files.pythonhosted.org/packages/90/9b/381971bdaf7d1a68da0fe6a90eff03a5342efe96b8c1b476a9cdfc8934ba/django-datetime-widget-fa-0.10.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "68a1b433bf413e3076c8794cf487e5c3", "sha256": "23efba6b3984d39827f7b03be63d844bb99e74349cbe2c6f78290f3f536b696a" }, "downloads": -1, "filename": "django-datetime-widget-fa-0.10.0.zip", "has_sig": false, "md5_digest": "68a1b433bf413e3076c8794cf487e5c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 94508, "upload_time": "2016-02-23T00:46:48", "url": "https://files.pythonhosted.org/packages/05/34/b5d4892ae1dacdad256e3541b42c89d082f41645d8c93769b2c58dce5b37/django-datetime-widget-fa-0.10.0.zip" } ], "0.9.3": [ { "comment_text": "", "digests": { "md5": "20673dd35e1c3e1ed9adbc1b46c57e1d", "sha256": "e3ea854a0038cc9d9c386c57fbdc0b6b0c92fb8db276e64ea240c4c1df284ebe" }, "downloads": -1, "filename": "django-datetime-widget-fa-0.9.3.zip", "has_sig": false, "md5_digest": "20673dd35e1c3e1ed9adbc1b46c57e1d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 67066, "upload_time": "2016-02-22T22:34:38", "url": "https://files.pythonhosted.org/packages/ed/d2/3a81df222ce0363213d5b3fb17d34b1b76fcc62174385f0ecdf3a1896019/django-datetime-widget-fa-0.9.3.zip" } ], "0.9.4": [ { "comment_text": "", "digests": { "md5": "0388ddd7493843285f01b5ab9f4032ad", "sha256": "223796c41b0c19645939f8a07a60cf56829d8c76ecbf782e174be62fe56b683d" }, "downloads": -1, "filename": "django-datetime-widget-fa-0.9.4.tar.gz", "has_sig": false, "md5_digest": "0388ddd7493843285f01b5ab9f4032ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34847, "upload_time": "2016-02-22T22:40:44", "url": "https://files.pythonhosted.org/packages/06/60/fe2b475467c2b268acd0aa71f447fa06390788f95a5dbf14df0592acf07d/django-datetime-widget-fa-0.9.4.tar.gz" }, { "comment_text": "", "digests": { "md5": "026e2a4f9f627ce9bbb3665f70a29306", "sha256": "9345b09fb7ab2b931171d171bde23f9664f1dd74a1736487d073ee1956fc71b0" }, "downloads": -1, "filename": "django-datetime-widget-fa-0.9.4.zip", "has_sig": false, "md5_digest": "026e2a4f9f627ce9bbb3665f70a29306", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 67206, "upload_time": "2016-02-22T22:40:21", "url": "https://files.pythonhosted.org/packages/fc/04/74bcb8afd0cb7f7aea6a787df5c8bb06fa012514f20e11b15df78c2eaa45/django-datetime-widget-fa-0.9.4.zip" } ], "0.9.5": [ { "comment_text": "", "digests": { "md5": "a1e55e6ca373a83f626d324cd25745ee", "sha256": "600cdb161e4633fd85c98c9d5d0ec26b58d6ae2ec05e6e9a71c995a913b30ca4" }, "downloads": -1, "filename": "django-datetime-widget-fa-0.9.5.tar.gz", "has_sig": false, "md5_digest": "a1e55e6ca373a83f626d324cd25745ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61700, "upload_time": "2016-02-22T22:49:21", "url": "https://files.pythonhosted.org/packages/1e/7f/07abfc44bec779c29f5cfc3208246923c10f0a2192d2bee38e2cd43fdab8/django-datetime-widget-fa-0.9.5.tar.gz" }, { "comment_text": "", "digests": { "md5": "e15059d8968cfbd70c322a0139434e43", "sha256": "4dfed6a76fd1870a9294100069be20c44ee3d427cedcb9e58f044386c474b64d" }, "downloads": -1, "filename": "django-datetime-widget-fa-0.9.5.zip", "has_sig": false, "md5_digest": "e15059d8968cfbd70c322a0139434e43", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 94514, "upload_time": "2016-02-22T22:49:14", "url": "https://files.pythonhosted.org/packages/50/4c/a4928b881f83f16aa25cea922dcc349ec7e2bfb471970e3bfe5cbf779337/django-datetime-widget-fa-0.9.5.zip" } ], "0.9.6": [ { "comment_text": "", "digests": { "md5": "10ee425fa701739c0be8b33f1b76a98d", "sha256": "91e178b951070b231583a6aa53e530bca945d9bf8323321796e14861a78e4d27" }, "downloads": -1, "filename": "django-datetime-widget-fa-0.9.6.tar.gz", "has_sig": false, "md5_digest": "10ee425fa701739c0be8b33f1b76a98d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61722, "upload_time": "2016-02-22T23:09:26", "url": "https://files.pythonhosted.org/packages/e8/cc/737ecd9e21862995609b66c0757cea232ff4e095d4341cb518b043e4b258/django-datetime-widget-fa-0.9.6.tar.gz" }, { "comment_text": "", "digests": { "md5": "86576d8a601cfcaa42945a68cc5d65e6", "sha256": "266ecdd3439ba508de1ccdea696c7303996f37cca408554208614f32f07b5376" }, "downloads": -1, "filename": "django-datetime-widget-fa-0.9.6.zip", "has_sig": false, "md5_digest": "86576d8a601cfcaa42945a68cc5d65e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 94537, "upload_time": "2016-02-22T23:09:15", "url": "https://files.pythonhosted.org/packages/91/a1/4cdff48d5aac2922401af6eac11e0566a23fee045d7326bd7b37eca12007/django-datetime-widget-fa-0.9.6.zip" } ], "0.9.7": [ { "comment_text": "", "digests": { "md5": "d9dd093f54be639dfca793a2e82d2a3d", "sha256": "59c8073b7a45685e6ba0d005eb34aee7ab955b6bd86258f077bd8933992e7f5d" }, "downloads": -1, "filename": "django-datetime-widget-fa-0.9.7.tar.gz", "has_sig": false, "md5_digest": "d9dd093f54be639dfca793a2e82d2a3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61726, "upload_time": "2016-02-22T23:55:50", "url": "https://files.pythonhosted.org/packages/db/90/292839a69c3bbb7c6bc6b6c08deb99e7d23859171a2a998e3de1f4fe8feb/django-datetime-widget-fa-0.9.7.tar.gz" }, { "comment_text": "", "digests": { "md5": "3a7b511b99fdcf8f7bbecda12b8387ff", "sha256": "115816bfd83c35877bcf5e134cf18b461eb73cec749df6fd002db9480c80b896" }, "downloads": -1, "filename": "django-datetime-widget-fa-0.9.7.zip", "has_sig": false, "md5_digest": "3a7b511b99fdcf8f7bbecda12b8387ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 94527, "upload_time": "2016-02-22T23:55:41", "url": "https://files.pythonhosted.org/packages/c4/a4/d092879518d5e014a94cdf75366a06912ca2b1abe2ff89d8c79af09c4e6a/django-datetime-widget-fa-0.9.7.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "304e914c63f054c0496a2167db9d5de3", "sha256": "b8b4f176136549d75aadd669aeb3f66ba201b5829fe60327c6211b1c8ad19b1f" }, "downloads": -1, "filename": "django-datetime-widget-fa-0.10.0.tar.gz", "has_sig": false, "md5_digest": "304e914c63f054c0496a2167db9d5de3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61658, "upload_time": "2016-02-23T00:46:54", "url": "https://files.pythonhosted.org/packages/90/9b/381971bdaf7d1a68da0fe6a90eff03a5342efe96b8c1b476a9cdfc8934ba/django-datetime-widget-fa-0.10.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "68a1b433bf413e3076c8794cf487e5c3", "sha256": "23efba6b3984d39827f7b03be63d844bb99e74349cbe2c6f78290f3f536b696a" }, "downloads": -1, "filename": "django-datetime-widget-fa-0.10.0.zip", "has_sig": false, "md5_digest": "68a1b433bf413e3076c8794cf487e5c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 94508, "upload_time": "2016-02-23T00:46:48", "url": "https://files.pythonhosted.org/packages/05/34/b5d4892ae1dacdad256e3541b42c89d082f41645d8c93769b2c58dce5b37/django-datetime-widget-fa-0.10.0.zip" } ] }