django中文和时区的配置

LANGUAGE_CODE = 'zh-Hans'

TIME_ZONE = 'Asia/Shanghai'

USE_I18N = True

USE_L10N = True

USE_TZ = False

 

posted @ 2019-07-07 14:57  烧刘病  阅读(237)  评论(0编辑  收藏  举报
回到页首