{ "info": { "author": "Wolfgang Fehr", "author_email": "dev@wfehr.de", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.11", "Framework :: Django :: 2.1", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "==================\ndjango-time-wizard\n==================\n\nDate and time dependend content manipulation.\n\nQuick start\n===========\n\n1. Install using pip::\n\n pip install django-time-wizard\n\n2. Make sure to follow the installation steps for `django-polymorphic`\n\n\n3. Add to your `INSTALLED_APPS`::\n\n 'polymorphic',\n 'time_wizard',\n\n4. Include the time_wizard admin URLs in your project urls.py::\n\n url(^'admin/', include('time_wizard.urls')),\n\n5. Run `python manage.py migrate` to create the time_wizard models.\n\nNote\n====\n\nUpgrading from version `0.2.0` to `1.0.0` will delete all the created models\nof `time_wizard`!\n\nUsage\n=====\n\nYou can use the `TimeWizard` in different ways:\n\n* use a `ForeignKey`-relation\n\n * use one `TimeWizardModel`-definition for as much models as you want\n * affects your database as the relation needs a new model field\n * example::\n\n from time_wizard.mixins import TimeWizardMixin\n ...\n class MyModel(TimeWizardMixin, models.Model):\n ...\n\n* use the `PeriodModelInline` in the `admin`, for example:\n\n * each model of yours can have different time-settings\n * does not effect your database as it works with a generic relationship\n * example::\n\n from time_wizard.admin import PeriodModelInline\n from polymorphic.admin import PolymorphicInlineSupportMixin\n ...\n class MyModelAdmin(PolymorphicInlineSupportMixin, admin.ModelAdmin):\n inlines = [PeriodModelInline]\n ...\n\nSettings\n========\n\nDjango-time-wizard uses the defined `countries` and `provinces`/`states` from\n`holidays`. Definitions need to be compatible with `holidays`. You can also\ndefine this yourself for your needs::\n\n TIME_WIZARD_COUNTRIES = ['US', 'UK', 'DE', ...]\n TIME_WIZARD_COUNTRY_PROVINCES = {'US': ['AL', 'AK', ...], ...}\n\nRequirements\n============\n\n- django\n- django-polymorphic\n- holidays\n\nTests\n=====\n\nSetup your test environment with `virtualenv` and install the requirements\nwith `pip install .`. Also install `tox` via pip and simply run `tox`.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/wfehr/django-time-wizard/tarball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wfehr/django-time-wizard", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-time-wizard", "package_url": "https://pypi.org/project/django-time-wizard/", "platform": "", "project_url": "https://pypi.org/project/django-time-wizard/", "project_urls": { "Download": "https://github.com/wfehr/django-time-wizard/tarball/master", "Homepage": "https://github.com/wfehr/django-time-wizard" }, "release_url": "https://pypi.org/project/django-time-wizard/1.0.0/", "requires_dist": [ "django (<2.2,>=1.11)", "django-polymorphic (<2.1,>=0.7)", "holidays (==0.9.10)" ], "requires_python": "", "summary": "Date and time dependend content manipulation", "version": "1.0.0" }, "last_serial": 5494702, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e58db3c9492809c2366a957cc2649544", "sha256": "b2e0d0b112812a25103176b49e684e04223f29a623b3662f8aa04e6f7855e714" }, "downloads": -1, "filename": "django_time_wizard-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "e58db3c9492809c2366a957cc2649544", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 11945, "upload_time": "2018-10-10T18:18:42", "url": "https://files.pythonhosted.org/packages/0a/fb/c3ba497ba4f7c911757e0c0bc1aaa091d26bf28106fad2d4ca2d5d975294/django_time_wizard-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "da22f203915be6359e7217aa05773e57", "sha256": "9569aa95f593f4144dfccf55a5cb9ec8f792e7c935c7681363ac20e70d8fa172" }, "downloads": -1, "filename": "django-time-wizard-0.1.0.tar.gz", "has_sig": false, "md5_digest": "da22f203915be6359e7217aa05773e57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8514, "upload_time": "2018-10-10T18:18:44", "url": "https://files.pythonhosted.org/packages/85/31/ba3b2d01d5fd909682b73e0e0593b1d8ad0a98dd5ddced93bfc0079f8b35/django-time-wizard-0.1.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "18cb1856e1dbc27d21c902d7c7abcb1a", "sha256": "b0d9d9e33166d94f2c8e6e674eae3cfece764b71dee99886404950ab0edef83a" }, "downloads": -1, "filename": "django_time_wizard-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "18cb1856e1dbc27d21c902d7c7abcb1a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13987, "upload_time": "2019-07-06T12:30:39", "url": "https://files.pythonhosted.org/packages/89/91/0f5b2f52a64f60bd296abfb5ed4aaf4425f3db227d9bba25e153f5e24fd6/django_time_wizard-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0ebdc338e14ddd3ec629a344865b31ed", "sha256": "d5649387d9c1d57e3cdeb937ff0881fbdeccc1b5b1851bafcf8c08b92b4a5c32" }, "downloads": -1, "filename": "django-time-wizard-1.0.0.tar.gz", "has_sig": false, "md5_digest": "0ebdc338e14ddd3ec629a344865b31ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9671, "upload_time": "2019-07-06T12:30:55", "url": "https://files.pythonhosted.org/packages/39/d3/d071dc824494864f805e730e43187fbb8a9af09dc0099efa53e56ee55cb5/django-time-wizard-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "18cb1856e1dbc27d21c902d7c7abcb1a", "sha256": "b0d9d9e33166d94f2c8e6e674eae3cfece764b71dee99886404950ab0edef83a" }, "downloads": -1, "filename": "django_time_wizard-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "18cb1856e1dbc27d21c902d7c7abcb1a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13987, "upload_time": "2019-07-06T12:30:39", "url": "https://files.pythonhosted.org/packages/89/91/0f5b2f52a64f60bd296abfb5ed4aaf4425f3db227d9bba25e153f5e24fd6/django_time_wizard-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0ebdc338e14ddd3ec629a344865b31ed", "sha256": "d5649387d9c1d57e3cdeb937ff0881fbdeccc1b5b1851bafcf8c08b92b4a5c32" }, "downloads": -1, "filename": "django-time-wizard-1.0.0.tar.gz", "has_sig": false, "md5_digest": "0ebdc338e14ddd3ec629a344865b31ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9671, "upload_time": "2019-07-06T12:30:55", "url": "https://files.pythonhosted.org/packages/39/d3/d071dc824494864f805e730e43187fbb8a9af09dc0099efa53e56ee55cb5/django-time-wizard-1.0.0.tar.gz" } ] }