Internationalization
https://docs.djangoproject.com/en/1.11/topics/i18n/
设置时区
LANGUAGE_CODE = 'zh-hans' # 中文支持,django1.8以后支持;1.8以前是zh-cn
TIME_ZONE = 'Asia/Shanghai'
USE_I18N = True
USE_L10N = True
USE_TZ = False # 默认是Ture,时间是utc时间,由于我们要用本地时间,所以手动修改为false!!!!
网友评论