1. 后台中文设置:
1.1 修改settings.py
LANGUAGE_CODE = 'zh_Hans'('zh-Hans')
2. 修改上海时区:
1.1 修改settings.py
TIME_ZONE = 'Asia/Shanghai' USE_TZ = True
本文共 182 字,大约阅读时间需要 1 分钟。
1. 后台中文设置:
1.1 修改settings.py
LANGUAGE_CODE = 'zh_Hans'('zh-Hans')
2. 修改上海时区:
1.1 修改settings.py
TIME_ZONE = 'Asia/Shanghai' USE_TZ = True
转载于:https://my.oschina.net/bklyy/blog/1814546