Internationalization doesn't work or I don't know how to make it work

前端 未结 1 1691
借酒劲吻你
借酒劲吻你 2021-01-24 15:37

Settings.py constants

TIME_ZONE = \'Europe/Vilnius\'
LANGUAGE_CODE = \'lt\'
USE_I18N = True
USE_L10N = True
USE_TZ = True

MIDDLEWARE_CLASSES = (
    \'django.mi         


        
相关标签:
1条回答
  • 2021-01-24 16:25

    Well, I have found the answer myself.

    I needed to add the following line in settings.py:

    LOCALE_PATHS = (os.path.join(os.path.dirname(__file__), '../locale/'),)

    0 讨论(0)
提交回复
热议问题