{ "info": { "author": "Nothrbridge Development Konrad & Schneider GbR", "author_email": "mail@nb-dev.de", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "|PyPI version| |Build Status| |Coverage Status| |Downloads| |Supported Python versions| |License|\n=================================================================================================\n\ndjango-splitdate\n================\n\nThis app provides a form widget that uses three text inputs to enter the\nday, month and year of a date for a standard DateField. The field is\nbased on Django's forms.SplitDateTimeWidget.\n\nQuick start\n-----------\n\n1. Install django-splitdate:\n\n - From the pip repository: ``pip install django_splitdate``\n - or directly from github:\n \\`\\ ``pip install git+git://github.com/NB-Dev/django-splitdate.git``\n\n2. Add ``django_splitdate`` to your ``INSTALLED_APPS``:\n\n ::\n\n INSTALLED_APPS = (\n ...\n 'django_splitdate',\n )\n\n3. (optional) Customize the Settings (see below)\n\n4. Use the SplitDateField in your Forms:\n\n ::\n\n from django_splitdate.forms import SplitDateField\n date = forms.SplitDateField()\n\nGlobal Configuration\n--------------------\n\nThe SplitDateField can be configured globally in your settings.py file\nwith the following options\n\nSPLITDATE\\_ORDER (String or Dict):\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nDefines the ordering of the day, month and year fields.\n\nThe order of the fields is defined by a three character string, that\ncontains the characters 'd'(day), 'm'(month), 'y'(year) in the desired\norder.\n\nThe setting can either be such a string to be used on each\nSplitDateField no matter what language is selected, or a dictionary\ncontaining key, value pairs with a locale name as key and the\ncorresponding order string as value to be used depending on the current\nlocale\n\nDefault:\n\n::\n\n dict((\n ('en', 'mdy'),\n ('de', 'dmy')\n ))\n\nSPLITDATE\\_PLACEHOLDER\\_DAY (String):\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nA string defining the placeholder of the day field.\n\nDefault: ``_('DD')``\n\nSPLITDATE\\_PLACEHOLDER\\_MONTH (String):\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nA string defining the placeholder of the month field.\n\nDefault: ``_('MM')``\n\nSPLITDATE\\_PLACEHOLDER\\_YEAR (String):\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nA string defining the placeholder of the year field.\n\nDefault: ``_('YYYY')``\n\nWidget configuration\n--------------------\n\nIf you want to customize the widget of the SplitDateField, use the\nSplitDateWidget.\n\ne.g. add a class:\n\n::\n\n from django_splitdate.forms import SplitDateField, SplitDateWidget\n date = forms.SplitDateField(widget=SplitDateWidget(attrs={'class':'myclass'}))\n\nAdditionally the widget takes the following local overwrites of the\nglobal configurations at initialization:\n\nfield\\_ordering (String or Dict):\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nLocal overwrite for SPLITDATE\\_ORDER. Possible values, see above.\n\nplaceholder\\_day (String):\n^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nLocal overwrite for SPLITDATE\\_PLACEHOLDER\\_DAY. Possible values, see\nabove.\n\nplaceholder\\_month (String):\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nLocal overwrite for SPLITDATE\\_PLACEHOLDER\\_MONTH. Possible values, see\nabove.\n\nplaceholder\\_year (String):\n^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nLocal overwrite for SPLITDATE\\_PLACEHOLDER\\_YEAR. Possible values, see\nabove.\n\nRunning the tests\n-----------------\n\nThe included tests can be run standalone by running the\n``tests/runtests.py`` script. The only requirement for this is Django >=\n1.7. If you also want to run coverage, you need to install it before\nrunning the tests\n\n.. |PyPI version| image:: https://badge.fury.io/py/django-splitdate.png\n :target: http://badge.fury.io/py/django-splitdate\n.. |Build Status| image:: https://travis-ci.org/NB-Dev/django-splitdate.svg?branch=master\n :target: https://travis-ci.org/NB-Dev/django-splitdate\n.. |Coverage Status| image:: https://coveralls.io/repos/NB-Dev/django-splitdate/badge.svg?branch=master\n :target: https://coveralls.io/r/NB-Dev/django-splitdate?branch=master\n.. |Downloads| image:: https://pypip.in/download/django-splitdate/badge.svg\n :target: https://pypi.python.org/pypi/django-splitdate/\n.. |Supported Python versions| image:: https://pypip.in/py_versions/django-splitdate/badge.svg\n :target: https://pypi.python.org/pypi/django-splitdate/\n.. |License| image:: https://pypip.in/license/django-splitdate/badge.svg\n :target: https://pypi.python.org/pypi/django-splitdate/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/NB-Dev/django-splitdate", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "django-splitdate", "package_url": "https://pypi.org/project/django-splitdate/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-splitdate/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/NB-Dev/django-splitdate" }, "release_url": "https://pypi.org/project/django-splitdate/0.1.8/", "requires_dist": null, "requires_python": null, "summary": "A widget for django form date fields that displays three inputs (day, month, year).", "version": "0.1.8" }, "last_serial": 1435995, "releases": { "0.1.8": [ { "comment_text": "", "digests": { "md5": "b1f35a185504ed6d94691d85ecaa4f21", "sha256": "2720ec86aabcd7f0343454278e92225b804c441db484f19f3ceea96fc2cd18a0" }, "downloads": -1, "filename": "django-splitdate-0.1.8.tar.gz", "has_sig": false, "md5_digest": "b1f35a185504ed6d94691d85ecaa4f21", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6897, "upload_time": "2015-02-24T10:16:12", "url": "https://files.pythonhosted.org/packages/1f/11/7d41fb59b78d80e624ec5960b4709a838a8df01b5e8d13e94e1464652ebc/django-splitdate-0.1.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b1f35a185504ed6d94691d85ecaa4f21", "sha256": "2720ec86aabcd7f0343454278e92225b804c441db484f19f3ceea96fc2cd18a0" }, "downloads": -1, "filename": "django-splitdate-0.1.8.tar.gz", "has_sig": false, "md5_digest": "b1f35a185504ed6d94691d85ecaa4f21", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6897, "upload_time": "2015-02-24T10:16:12", "url": "https://files.pythonhosted.org/packages/1f/11/7d41fb59b78d80e624ec5960b4709a838a8df01b5e8d13e94e1464652ebc/django-splitdate-0.1.8.tar.gz" } ] }