0
我在我的系統上設置了Django服務器。以下步驟從here。Django:設置服務器時更改時區
它說
當你正在編輯的mysite/settings.py,設置TIME_ZONE到您的時區。
我試圖改變我的TIME_ZONE
類似以下內容:
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'IST'
USE_I18N = True
USE_L10N = True
USE_TZ = True`
我收到以下錯誤: >
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 345, in execute
settings.INSTALLED_APPS
File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 46, in __getattr__
self._setup(name)
File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 123, in __init__
raise ValueError("Incorrect timezone setting: %s" % self.TIME_ZONE)
ValueError: Incorrect timezone setting: IST
如何設置我的TIME_ZONE
到IST