Fix locale support

This commit is contained in:
Jan Dittberner 2018-12-26 14:51:34 +01:00
parent 24009bff3e
commit 10a83d36f7
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ USE_TZ = True
LOCALE_PATHS = (
normpath(join(SITE_ROOT, 'locale')),
normpath(join(SITE_ROOT, 'gnuviechadmin', 'locale')),
)
@ -175,9 +175,9 @@ MIDDLEWARE = [
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
# uncomment next line to enable translation to browser locale
'django.middleware.locale.LocaleMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
# ######### END MIDDLEWARE CONFIGURATION