diff --git a/GeneralApp/views.py b/GeneralApp/views.py index 9847316..5e73578 100644 --- a/GeneralApp/views.py +++ b/GeneralApp/views.py @@ -35,6 +35,8 @@ def test_code(request): def MainPage(request): from RoutesApp.forms import RouteForm + print(f'LOCALE_PATHS = {str(settings.LOCALE_PATHS)}') + page = StaticPage.objects.get(url='main') from ArticlesApp.models import ArticleModel diff --git a/TWB/settings.py b/TWB/settings.py index f634ec4..a1af215 100644 --- a/TWB/settings.py +++ b/TWB/settings.py @@ -185,6 +185,7 @@ LOCALE_PATHS = ( ) + gettext = lambda s: s LANGUAGES = ( (u'ru', gettext(u'Russian')),