From 1496e3d4b6dc8d617f42f3e5a0f3a1484ef1bc13 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Wed, 9 Feb 2022 10:34:51 +0100 Subject: [PATCH] changes in production setting --- eva/settings_production.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eva/settings_production.py b/eva/settings_production.py index 5a77b71..b21ce6e 100644 --- a/eva/settings_production.py +++ b/eva/settings_production.py @@ -81,6 +81,7 @@ MIDDLEWARE = [ 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', + 'django.middleware.locale.LocaleMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', @@ -141,7 +142,7 @@ AUTH_PASSWORD_VALIDATORS = [ # Internationalization # https://docs.djangoproject.com/en/3.1/topics/i18n/ -LANGUAGE_CODE = 'en-us' +LANGUAGE_CODE = 'de' TIME_ZONE = 'UTC' @@ -151,6 +152,7 @@ USE_L10N = True USE_TZ = True +LOCALE_PATHS = ( os.path.join(BASE_DIR, 'locale'), ) # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.1/howto/static-files/