From 5826489fa46f5d143d84f476bbae082916fdff50 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 12 May 2021 20:45:39 +0300 Subject: Fix middleware --- settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/settings.py b/settings.py index fb8d9a2..3933abc 100644 --- a/settings.py +++ b/settings.py @@ -58,11 +58,11 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage' -MIDDLEWARE_CLASSES = ( +MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', + 'django.middleware.locale.LocaleMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', @@ -70,7 +70,7 @@ MIDDLEWARE_CLASSES = ( 'servo.lib.middleware.TimezoneMiddleware', #'django.middleware.common.BrokenLinkEmailsMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', -) +] ROOT_URLCONF = 'servo.urls.default' SESSION_SERIALIZER = 'servo.lib.utils.SessionSerializer' -- cgit v1.2.3