{ "info": { "author": "Will Gordon", "author_email": "will@gordoncode.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: Implementation :: CPython" ], "description": "=============================\nAwesome Django Timezones\n=============================\n\n.. image:: https://badge.fury.io/py/awesome-django-timezones.svg\n :target: https://badge.fury.io/py/awesome-django-timezones\n\n.. image:: https://travis-ci.org/wgordon17/awesome-django-timezones.svg?branch=master\n :target: https://travis-ci.org/wgordon17/awesome-django-timezones\n\n.. image:: https://codecov.io/gh/wgordon17/awesome-django-timezones/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/wgordon17/awesome-django-timezones\n\nEasily set a localized timezone for users\n\nDocumentation\n-------------\n\nThe full documentation is at https://awesome-django-timezones.readthedocs.io.\n\nQuickstart\n----------\n\nInstall Awesome Django Timezones::\n\n pip install awesome-django-timezones\n\nAdd it to your ``INSTALLED_APPS``:\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n ...\n 'awesome_django_timezones',\n ...\n )\n\nAdd DjangoTimezonesMiddleware to your ``MIDDLEWARE_CLASSES``:\n\n.. code-block:: python\n\n MIDDLEWARE_CLASSES = (\n ...\n 'awesome_django_timezones.middleware.TimezonesMiddleware',\n ...\n )\n\nAdd ``js/awesome_django_timezones.js`` to your base template\n\n.. code-block:: html\n\n \n\n(Optional) If you need Django to be timezone aware on the Admin page, you will have to extend the\nAdmin ``base.html`` in ``your_project/templates/admin/base.html``\n\n.. code-block:: python\n\n {% extends 'admin/base.html' %}\n {% load static %}\n\n {% block footer %}\n {{ block.super }}\n\n \n\n {% endblock %}\n\nFeatures\n--------\n\n* Provides an accurate method of determining the an end user's timezone and activating that timezone in Django.\n\n* Uses client side, JavaScript detection for the most accurate method of determining a timezone.\n\n * Uses the widely supported, native `Intl JavaScript\n library `_\n to detect the client's timezone. This library is not currently implemented for IE11.\n\n* Falls back to server side timezone detection via an IP API.\n\n * Fall back is provided for IE11 clients or clients with JavaScript disabled.\n\n * Relies on third-party IP API lookups by https://ipapi.co. Consider purchasing a plan if you need more than 30k IP lookups/month or\n if you need support (no affiliation).\n\n* Set a fallback timezone to always use in case a timezone can't be found with ``AWESOME_TZ_DEFAULT_TZ`` in your ``settings.py``. (Be sure to use the \"TZ database name\" column from https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)\n\nRunning Tests\n-------------\n\nDoes the code actually work?\n\n::\n\n source /bin/activate\n (myenv) $ pip install -r requirements_test.txt\n (myenv) $ tox\n\nCredits\n-------\n\nTools used in rendering this package:\n\n* Cookiecutter_\n* `cookiecutter-djangopackage`_\n* `ipapi`_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n.. _`ipapi`: https://github.com/ipapi-co/ipapi-python\n\n\n\n\nHistory\n-------\n\n0.1.0 (2019-02-04)\n++++++++++++++++++\n\n* First release on PyPI.\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wgordon17/awesome-django-timezones", "keywords": "awesome-django-timezones", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "awesome-django-timezones", "package_url": "https://pypi.org/project/awesome-django-timezones/", "platform": "", "project_url": "https://pypi.org/project/awesome-django-timezones/", "project_urls": { "Documentation": "https://awesome-django-timezones.readthedocs.io", "Homepage": "https://github.com/wgordon17/awesome-django-timezones", "Source": "https://github.com/wgordon17/awesome-django-timezones" }, "release_url": "https://pypi.org/project/awesome-django-timezones/0.3.0/", "requires_dist": [ "ipapi", "django (>=2.1)" ], "requires_python": "", "summary": "Easily set a localized timezone for users", "version": "0.3.0" }, "last_serial": 5423813, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "aca50a7a42ec0fb119ffb7e16fb31d6d", "sha256": "4b68976f3c1bf41b3228e6969468bcd13d45fcde767e63af32646f6c992d88e4" }, "downloads": -1, "filename": "awesome_django_timezones-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "aca50a7a42ec0fb119ffb7e16fb31d6d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6275, "upload_time": "2019-02-04T22:44:18", "url": "https://files.pythonhosted.org/packages/db/9c/728a9efc8116d7fb740f712bbcaea365e04899879318f16f7831a134ec31/awesome_django_timezones-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db5fdb02895d9161490ae81f1dd70dc9", "sha256": "f2ebc85f2811cd4fc7db71ad3c596ab94c769be3db08c2fdcf8efa18e9bb6883" }, "downloads": -1, "filename": "awesome-django-timezones-0.1.0.tar.gz", "has_sig": false, "md5_digest": "db5fdb02895d9161490ae81f1dd70dc9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7117, "upload_time": "2019-02-04T22:44:20", "url": "https://files.pythonhosted.org/packages/68/ba/76cb81ee543835e9ff1e61f7f39d6275ac573484d9dc72dc870a89e00486/awesome-django-timezones-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "cc4f7e23373e3ffbf0c50bb189b25c62", "sha256": "b3120a9a97b32bae8a763eec3f20782ef9aebf977c91d6c0fb049b340f51fa97" }, "downloads": -1, "filename": "awesome_django_timezones-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cc4f7e23373e3ffbf0c50bb189b25c62", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6324, "upload_time": "2019-02-10T03:02:07", "url": "https://files.pythonhosted.org/packages/79/e5/d771e26c940d05a352e1dd9a9a6052f6dd53914fb6dabadfec442289aa03/awesome_django_timezones-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ce9b8b1e4dee018be90d689af6e6ff9d", "sha256": "5946b9e25b7523c988f015c1dcbc53ddde4734f85d25a292f33eac0c466b4a6a" }, "downloads": -1, "filename": "awesome-django-timezones-0.2.0.tar.gz", "has_sig": false, "md5_digest": "ce9b8b1e4dee018be90d689af6e6ff9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7154, "upload_time": "2019-02-10T03:02:09", "url": "https://files.pythonhosted.org/packages/b5/3f/a4dfa578b1a9c07e59433db06aefa4e54acefaef3ce139e2e36df7e59c3a/awesome-django-timezones-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "f1c0f360cdc47465a66812a497aa6066", "sha256": "22acf051e8287c1af743cdea227ceb5a132ed2d0caaf3fe5128e39ccd10b31a1" }, "downloads": -1, "filename": "awesome_django_timezones-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f1c0f360cdc47465a66812a497aa6066", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6564, "upload_time": "2019-06-20T04:40:15", "url": "https://files.pythonhosted.org/packages/9f/03/00292801afbc9361860ba579f47617ae425c358c7ad03b1afd067e94596b/awesome_django_timezones-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a4cb3893fc71cc79b0b8ea2ae3fbd321", "sha256": "d97cb781a193cf06214c617594c9c789e692304586306b8d5dbb55b16a79a754" }, "downloads": -1, "filename": "awesome-django-timezones-0.3.0.tar.gz", "has_sig": false, "md5_digest": "a4cb3893fc71cc79b0b8ea2ae3fbd321", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7370, "upload_time": "2019-06-20T04:40:18", "url": "https://files.pythonhosted.org/packages/8f/07/9eee2ae9da7c6444aea0f5b0001da32f8411c8e975a663cd9c6b33e2ef7c/awesome-django-timezones-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f1c0f360cdc47465a66812a497aa6066", "sha256": "22acf051e8287c1af743cdea227ceb5a132ed2d0caaf3fe5128e39ccd10b31a1" }, "downloads": -1, "filename": "awesome_django_timezones-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f1c0f360cdc47465a66812a497aa6066", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6564, "upload_time": "2019-06-20T04:40:15", "url": "https://files.pythonhosted.org/packages/9f/03/00292801afbc9361860ba579f47617ae425c358c7ad03b1afd067e94596b/awesome_django_timezones-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a4cb3893fc71cc79b0b8ea2ae3fbd321", "sha256": "d97cb781a193cf06214c617594c9c789e692304586306b8d5dbb55b16a79a754" }, "downloads": -1, "filename": "awesome-django-timezones-0.3.0.tar.gz", "has_sig": false, "md5_digest": "a4cb3893fc71cc79b0b8ea2ae3fbd321", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7370, "upload_time": "2019-06-20T04:40:18", "url": "https://files.pythonhosted.org/packages/8f/07/9eee2ae9da7c6444aea0f5b0001da32f8411c8e975a663cd9c6b33e2ef7c/awesome-django-timezones-0.3.0.tar.gz" } ] }