草庐IT

django 1.11忽略tempate trans标签

我已经设置了正确的一切,当我启动时:makemessages--localefr--localeen它仅考虑python文件中使用的翻译字符串,而不是在模板文件中(nb:我有){%loadi18n%}在所有模板文件的第一行中)。我忘记了什么?"""Djangosettingsforcocktailsproject.Generatedby'django-adminstartproject'usingDjango1.11.2.Formoreinformationonthisfile,seehttps://docs.djangoproject.com/en/1.11/topics/settings/