Browse Source

added Locale Middleware for i18n of admin interface

master
Benni Bärmann 10 months ago
parent
commit
d1534394ba
  1. 1
      foerderbarometer/settings_development.py
  2. 1
      foerderbarometer/settings_production.py

1
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',

1
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',

Loading…
Cancel
Save