django3.0开始LANGUAGE_CODE前面必须配相应的LANGUAGES配置如下:
from django.utils.translation import gettext_lazy as _LANGUAGES = [('zh-Hans', _('Chinese')),]LANGUAGE_CODE = 'zh-Hans'
如果觉得《You have provided a value for the LANGUAGE_CODE setting that is not in the LANGUAGES setting》对你有帮助,请点赞、收藏,并留下你的观点哦!