标签:VID from style text lazy chinese django provided util
django3.0开始LANGUAGE_CODE前面必须配相应的LANGUAGES配置如下:
from django.utils.translation import gettext_lazy as _
LANGUAGES = [ (‘zh-Hans‘, _(‘Chinese‘)), ] LANGUAGE_CODE = ‘zh-Hans‘
标签:VID from style text lazy chinese django provided util
原文地址:https://www.cnblogs.com/dhcn/p/12038629.html