{ "info": { "author": "Simon Charette.", "author_email": "charette.s+sundial@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.11", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "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", "Topic :: Internet :: WWW/HTTP :: WSGI", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "django-sundial\n==============\n\n.. image:: https://img.shields.io/pypi/l/django-sundial.svg?style=flat\n :target: https://pypi.python.org/pypi/django-sundial/\n :alt: License\n\n.. image:: https://img.shields.io/pypi/v/django-sundial.svg?style=flat\n :target: https://pypi.python.org/pypi/django-sundial/\n :alt: Latest Version\n\n.. image:: https://travis-ci.org/charettes/django-sundial.svg?branch=master\n :target: https://travis-ci.org/charettes/django-sundial\n :alt: Build Status\n\n.. image:: https://coveralls.io/repos/charettes/django-sundial/badge.svg?branch=master\n :target: https://coveralls.io/r/charettes/django-sundial?branch=master\n :alt: Coverage Status\n\n.. image:: https://img.shields.io/pypi/pyversions/django-sundial.svg?style=flat\n :target: https://pypi.python.org/pypi/django-sundial/\n :alt: Supported Python Versions\n\n.. image:: https://img.shields.io/pypi/wheel/django-sundial.svg?style=flat\n :target: https://pypi.python.org/pypi/django-sundial/\n :alt: Wheel Status\n\nDjango application providing database, form fields and middleware for timezone support.\n\nInstallation\n------------\n\n.. code:: sh\n\n pip install django-sundial\n\nUsage\n-----\n\n.. code:: python\n\n # settings.py\n TIME_ZONE = 'America/Chicago'\n AUTH_USER_MODEL = 'app.User'\n MIDDLEWARE = [\n ...,\n 'django.contrib.sessions.middleware.SessionMiddleware',\n ...,\n 'sundial.middleware.TimezoneMiddleware',\n ...,\n ]\n\n.. code:: python\n\n # app/models.py\n from django.conf import settings\n from django.contrib.auth.models import AbstractUser\n from django.contrib.auth.signals import user_logged_in\n from django.dispatch.dispatcher import receiver\n\n from sundial.fields import TimezoneField\n from sundial.utils import set_session_timezone\n from sundial.zones import COMMON_GROUPED_CHOICES\n\n class User(AbstractUser):\n timezone = TimezoneField(\n default=settings.TIME_ZONE, choices=COMMON_GROUPED_CHOICES\n )\n\n @receiver(user_logged_in)\n def assign_user_timezone(request, user, **kwargs):\n set_session_timezone(request.session, user.timezone)\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/charettes/django-sundial", "keywords": "django timezone", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-sundial", "package_url": "https://pypi.org/project/django-sundial/", "platform": "", "project_url": "https://pypi.org/project/django-sundial/", "project_urls": { "Homepage": "https://github.com/charettes/django-sundial" }, "release_url": "https://pypi.org/project/django-sundial/1.0.6/", "requires_dist": [ "Django (>=1.11)", "pytz", "tox ; extra == 'tests'" ], "requires_python": "", "summary": "Django application providing database, form fields and middleware for timezone support.", "version": "1.0.6" }, "last_serial": 4628998, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "0cd3cb45d7d37f3b29431ec042d6d4bb", "sha256": "6abc012ded8bb037784106b5a4699daed34669ae633d67c0b8fdb6b14f5cdfb7" }, "downloads": -1, "filename": "django_sundial-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0cd3cb45d7d37f3b29431ec042d6d4bb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8958, "upload_time": "2015-01-22T22:04:39", "url": "https://files.pythonhosted.org/packages/c4/24/9d17a0537edb9e09c954f1d74cba117b5913ddd9a05f6653b8f0499b469d/django_sundial-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9da4bdd5b0c3212c21a3a8150345b3f3", "sha256": "9152e4f6ab3562b76025e44a244da6a4d28a1f57793bd0f32584385d3b1c0413" }, "downloads": -1, "filename": "django-sundial-1.0.tar.gz", "has_sig": false, "md5_digest": "9da4bdd5b0c3212c21a3a8150345b3f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5641, "upload_time": "2015-01-22T22:04:42", "url": "https://files.pythonhosted.org/packages/24/2a/9f226a97b2287b0f40b6f6e6dc0f338f31584586a7356ef947fed742585f/django-sundial-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "b14fa2387af3de911a89f2273ee5a0c1", "sha256": "3a153a49d32c9d240fd89625c2d02e99d1bc37698aa788625b02229e08278ae8" }, "downloads": -1, "filename": "django_sundial-1.0.1-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "b14fa2387af3de911a89f2273ee5a0c1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8993, "upload_time": "2015-01-22T22:12:24", "url": "https://files.pythonhosted.org/packages/d2/87/34f9ba916b67a643f9c8b2c2f0bdca09fd92d2284ad9bfc295b1d939066d/django_sundial-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "30658f77767ccdb49e7921c446fdb0f1", "sha256": "bf5df51c5a5bbbcbfb1c82a9749e0f5d1bcf8c67985526b76420f81780a513fe" }, "downloads": -1, "filename": "django-sundial-1.0.1.tar.gz", "has_sig": false, "md5_digest": "30658f77767ccdb49e7921c446fdb0f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5643, "upload_time": "2015-01-22T22:12:45", "url": "https://files.pythonhosted.org/packages/5d/ed/9a43d1e144619c56b2f4bbdf284456cb6e9418688d82bd6c8998675f07e1/django-sundial-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "bbb39dea9465b69c4465c9c1613be7a5", "sha256": "3745891337d726041b37aed95005b9c70377116d232157726e48b46aefef1961" }, "downloads": -1, "filename": "django_sundial-1.0.2-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "bbb39dea9465b69c4465c9c1613be7a5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8158, "upload_time": "2016-01-12T06:33:50", "url": "https://files.pythonhosted.org/packages/36/92/7d6a1a499e0d4e2bf3eb3f52b2a392559f36fbafc3170136f42f9301cb46/django_sundial-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0c9531950ff0e8ab31fc12b9a4ea0503", "sha256": "3362b59cca885f36741c6d7164a185ab6d23d057125dfaba70e3d419555c6b30" }, "downloads": -1, "filename": "django-sundial-1.0.2.tar.gz", "has_sig": true, "md5_digest": "0c9531950ff0e8ab31fc12b9a4ea0503", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4982, "upload_time": "2016-01-12T06:33:55", "url": "https://files.pythonhosted.org/packages/29/0d/716b29325f9313bcc6df84ffd8f7f908f5c513025f714fdcc0928d55b357/django-sundial-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "c94bad08c95157ee03a4bd4a78b9cf77", "sha256": "2e465d31a3e68ba5988e9402008b96265a3b8e6da6d5174691187c6267298f09" }, "downloads": -1, "filename": "django_sundial-1.0.3-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "c94bad08c95157ee03a4bd4a78b9cf77", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8163, "upload_time": "2017-09-13T03:53:04", "url": "https://files.pythonhosted.org/packages/6c/e1/ab074ceaedfd216dc75154ec2e9d1986646d06f8a7c022da120675a77207/django_sundial-1.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b083e52fe4672620833d01c53b4e3146", "sha256": "4155e6fb8407b26691d3322b1a479f973972e80cc9742581035113f85a29f05d" }, "downloads": -1, "filename": "django-sundial-1.0.3.tar.gz", "has_sig": true, "md5_digest": "b083e52fe4672620833d01c53b4e3146", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4976, "upload_time": "2017-09-13T03:53:05", "url": "https://files.pythonhosted.org/packages/e1/b6/880e959f79b5ac09dc3c0803c91998eb512787febbae5b1339eaa861623d/django-sundial-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "04406a121d18ea573b46314c4a222197", "sha256": "c99aab8276e6a0ecd204d46861051f69224ba2f8f1b1e83ac7da9a9ab4023930" }, "downloads": -1, "filename": "django_sundial-1.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "04406a121d18ea573b46314c4a222197", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6296, "upload_time": "2018-08-11T20:33:10", "url": "https://files.pythonhosted.org/packages/f8/5e/36f02a46e3c713be9a3500bbf448856e5df14481b9e6512af27e51e262c8/django_sundial-1.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "91ccadbd169820b03f6630189fad5e9d", "sha256": "b9580a6c2124d170432fa0de2daae3b09b15d88f04d1aead48941a263618d9c6" }, "downloads": -1, "filename": "django-sundial-1.0.4.tar.gz", "has_sig": false, "md5_digest": "91ccadbd169820b03f6630189fad5e9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4955, "upload_time": "2018-08-11T20:33:11", "url": "https://files.pythonhosted.org/packages/c1/99/49748b3ca0a45437f0416af9c5d7e5a91eef0bc2e0c74b26d9ebebbd9514/django-sundial-1.0.4.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "e322685697591fac2cb489d4dbd23457", "sha256": "08361afffc0da2358d4283e83a0426b862342af211e60d50f273213093306208" }, "downloads": -1, "filename": "django_sundial-1.0.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e322685697591fac2cb489d4dbd23457", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6326, "upload_time": "2018-12-23T07:16:27", "url": "https://files.pythonhosted.org/packages/5c/61/33db163aa9180ab8951795ca4694fc64a5d58fcc236b8b29eb4a6b125ccb/django_sundial-1.0.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8f935e64745c78a3025da67843968f9e", "sha256": "7dd7deff7aea8b2283b8795d5bd19f93d77484518efed6a7605dada7be965665" }, "downloads": -1, "filename": "django-sundial-1.0.6.tar.gz", "has_sig": false, "md5_digest": "8f935e64745c78a3025da67843968f9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4973, "upload_time": "2018-12-23T07:16:29", "url": "https://files.pythonhosted.org/packages/d2/d7/2989cf80eec46976ed54a1a6ab89637172f6de534491bf59da27907ac2a4/django-sundial-1.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e322685697591fac2cb489d4dbd23457", "sha256": "08361afffc0da2358d4283e83a0426b862342af211e60d50f273213093306208" }, "downloads": -1, "filename": "django_sundial-1.0.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e322685697591fac2cb489d4dbd23457", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6326, "upload_time": "2018-12-23T07:16:27", "url": "https://files.pythonhosted.org/packages/5c/61/33db163aa9180ab8951795ca4694fc64a5d58fcc236b8b29eb4a6b125ccb/django_sundial-1.0.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8f935e64745c78a3025da67843968f9e", "sha256": "7dd7deff7aea8b2283b8795d5bd19f93d77484518efed6a7605dada7be965665" }, "downloads": -1, "filename": "django-sundial-1.0.6.tar.gz", "has_sig": false, "md5_digest": "8f935e64745c78a3025da67843968f9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4973, "upload_time": "2018-12-23T07:16:29", "url": "https://files.pythonhosted.org/packages/d2/d7/2989cf80eec46976ed54a1a6ab89637172f6de534491bf59da27907ac2a4/django-sundial-1.0.6.tar.gz" } ] }