Common Settings

时区配置

LANGUAGE_CODE = 'zh-hans'

TIME_ZONE = 'Asia/Shanghai'
# 把下面这个变量设置成False,上面的时区才会生效
USE_TZ = False

你可能感兴趣的:(Common Settings)