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

Posted dhcn

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了(translation.E004) You have provided a value for the LANGUAGE_CODE setting that is not in the LANGUA相关的知识,希望对你有一定的参考价值。

     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 LANGUA的主要内容,如果未能解决你的问题,请参考以下文章

Django踩坑之django.core.exceptions.ImproperlyConfigured mysqlclient 1.3.13 or newer is required; you ha

十Django学习之优化admin (2020-03-13 18:57)

开发工具的那些故事Offending ECDSA key in ../.ssh/known_hosts:1ECDSA host key for ip has changed and you ha

开发工具的那些故事Offending ECDSA key in ../.ssh/known_hosts:1ECDSA host key for ip has changed and you ha(代码

str int list tuple dict 一些实操

读取存储在文本文件中的列表[重复]