只需要配置两个地方:
1、setting.py必须要修改成支持中文(LANGUAGE_CODE='zh-cn' ):
#LANGUAGE_CODE = 'en-us'
LANGUAGE_CODE = 'zh-cn'
2、模板文件(如html)需要保存成utf-8格式
只需要配置两个地方:
1、setting.py必须要修改成支持中文(LANGUAGE_CODE='zh-cn' ):
#LANGUAGE_CODE = 'en-us'
LANGUAGE_CODE = 'zh-cn'