django3.0开始LANGUAGE_CODE前面必须配相应的LANGUAGES配置如下:
from django.utils.translation import gettext_lazy as _
LANGUAGES = [ ('zh-Hans', _('Chinese')), ] LANGUAGE_CODE = 'zh-Hans'
django3.0开始LANGUAGE_CODE前面必须配相应的LANGUAGES配置如下:
from django.utils.translation import gettext_lazy as _
LANGUAGES = [ ('zh-Hans', _('Chinese')), ] LANGUAGE_CODE = 'zh-Hans'