From eb28bfe30501bfd5585ce0436fb757be95b216f0 Mon Sep 17 00:00:00 2001 From: Friedel Wolff Date: Thu, 1 Aug 2024 11:50:22 +0200 Subject: [PATCH] Insert LocaleMiddleware at correct place --- app/app/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app/settings.py b/app/app/settings.py index c1fe903c..98dda2f8 100644 --- a/app/app/settings.py +++ b/app/app/settings.py @@ -68,13 +68,13 @@ # DebugToolbarMiddleware should go here if enabled. Done below. See # https://django-debug-toolbar.readthedocs.io/en/latest/installation.html#add-the-middleware "django.contrib.sessions.middleware.SessionMiddleware", + "django.middleware.locale.LocaleMiddleware", "django.middleware.common.CommonMiddleware", "django.middleware.csrf.CsrfViewMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", "simple_history.middleware.HistoryRequestMiddleware", - "django.middleware.locale.LocaleMiddleware", ] # Add debug toolbar middleware