首页 > 其他 > 详细

(translation.E004) You have provided a value for the LANGUAGE_CODE setting that is not in the LANGUAGES setting.

时间:2019-12-14 13:38:53      阅读:1194      评论:0      收藏:0      [点我收藏+]

     django3.0开始LANGUAGE_CODE前面必须配相应的LANGUAGES配置如下:

from django.utils.translation import gettext_lazy as _
LANGUAGES = [
    (zh-Hans, _(Chinese)),
]

LANGUAGE_CODE = zh-Hans

 

(translation.E004) You have provided a value for the LANGUAGE_CODE setting that is not in the LANGUAGES setting.

原文:https://www.cnblogs.com/dhcn/p/12038629.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!