From d1534394ba0ecef840cd62c4b16e2add3df3b2ab Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Thu, 19 Nov 2020 13:20:49 +0100 Subject: [PATCH] added Locale Middleware for i18n of admin interface --- foerderbarometer/settings_development.py | 1 + foerderbarometer/settings_production.py | 1 + 2 files changed, 2 insertions(+) diff --git a/foerderbarometer/settings_development.py b/foerderbarometer/settings_development.py index f3708a8..e956a23 100644 --- a/foerderbarometer/settings_development.py +++ b/foerderbarometer/settings_development.py @@ -68,6 +68,7 @@ MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', diff --git a/foerderbarometer/settings_production.py b/foerderbarometer/settings_production.py index ba6437e..2e40922 100644 --- a/foerderbarometer/settings_production.py +++ b/foerderbarometer/settings_production.py @@ -73,6 +73,7 @@ MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware',