正常情况下,按下面改就行:
# LANGUAGE_CODE = 'en-us' #
# #
# # TIME_ZONE = 'UTC'
LANGUAGE_CODE = 'zh_Hans' # admin后台显示中文
TIME_ZONE = 'Asia/Shanghai'
如果碰到下面提示报错:
No translation files found for default language zh_hans
那么就按下面改:
将
LANGUAGE_CODE = 'zh_Hans' # 其他如zh-CN,zh_CN同理
改为:
LANGUAGE_CODE = 'zh-Hans' #将_改为-