You can list all the available timezones with pytz.all_timezones
:
In [40]: import pytz
In [41]: pytz.all_timezones
Out[42]:
['Africa/Abidjan',
'Africa/Accra',
'Africa/Addis_Ababa',
...]
There is also pytz.common_timezones
:
In [45]: len(pytz.common_timezones)
Out[45]: 403
In [46]: len(pytz.all_timezones)
Out[46]: 563
Related Contents:
- How to get the common name for a pytz timezone eg. EST/EDT for America/New_York
- What’s the difference between select_related and prefetch_related in Django ORM?
- Correct way to use get_or_create?
- Django: “projects” vs “apps”
- How to pull a random record using Django’s ORM?
- In Django, how do I check if a user is in a certain group?
- Change a Django form field to a hidden field
- is not JSON serializable
- Django, creating a custom 500/404 error page
- Django: ImproperlyConfigured: The SECRET_KEY setting must not be empty
- Split models.py into several files
- URL-parameters and logic in Django class-based views (TemplateView)
- How to expire session due to inactivity in Django?
- Default filter in Django admin
- Django return redirect() with parameters
- Django test runner not finding tests
- django 1.4 – can’t compare offset-naive and offset-aware datetimes
- How can I run a celery periodic task from the shell manually?
- What is the benefit of using a HyperlinkedModelSerializer in DRF?
- aggregate() vs annotate() in Django
- Catching DoesNotExist exception in a custom manager in Django
- how to run this code in django template
- Django Admin: Using a custom widget for only one model field
- Is there a way to undo a migration on Django and uncheck it from the list of showmigrations?
- How to return custom JSON in Django REST Framework
- Can you perform multi-threaded tasks within Django?
- Why do we need to use rabbitmq
- Site matching query does not exist
- Can you change a field label in the Django Admin application?
- Populating django field with pre_save()?
- django migrations – workflow with multiple dev branches
- How to get a list of all users with a specific permission group in Django
- Force django-admin startproject if project folder already exists
- How do I stop getting ImportError: Could not import settings ‘mofin.settings’ when using django with wsgi?
- Django ORM – objects.filter() vs. objects.all().filter() – which one is preferred?
- scoped_session(sessionmaker()) or plain sessionmaker() in sqlalchemy?
- Meaning of leading underscore in list of tuples used to define choice fields?
- Requirements.txt greater than equal to and then less than?
- Where should utility functions live in Django?
- How to compare dates in Django templates
- Using Basic HTTP access authentication in Django testing framework
- Page not found 404 Django media files
- Command not found: django-admin.py
- Django F expressions joined field
- “_set” in a queryset object in Django
- nginx and supervisor setup in Ubuntu
- Simply save file to folder in Django
- How to translate a model label in Django Admin?
- how to catch A ‘UNIQUE constraint failed’ 404 in django
- Tool for pinpointing circular imports in Python/Django?