We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django从1.9版本就支持在settings.py文件中配置TIME_ZONE了,不需要手动+8了, 管理大大改一下吧
The text was updated successfully, but these errors were encountered:
我说的是数据库配置哪里的时区
Sorry, something went wrong.
貌似没有哪里设置数据库的时区吧
link : https://docs.djangoproject.com/en/1.9/ref/settings/#time-zone,
e.g:
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'mydatabase', 'USER': 'mydatabaseuser', 'PASSWORD': 'mypassword', 'HOST': '127.0.0.1', 'PORT': '5432', 'TIME_ZONE':'Asia/Shanghai', } }
No branches or pull requests
Django从1.9版本就支持在settings.py文件中配置TIME_ZONE了,不需要手动+8了,
管理大大改一下吧
The text was updated successfully, but these errors were encountered: