IOError: No translation files found for default language zh-cn.

IOError: No translation files found for default language zh-cn.

 

检查  ...\Lib\site-packages\Django-1.10.2-py2.7.egg\django\conf\locale下无zh-cn文件夹,有zh-Hans和zh-Hant两个文件,

其中 zh-Hans是简体中文    zh-Hant是繁体中文

 

所以更改setttings.py 下 

LANGUAGE_CODE = 'zh-Hans'即可
posted @ 2017-06-18 11:06  xqnq2007  阅读(1559)  评论(0编辑  收藏  举报