diff options
author | Filipp Lepalaan <filipp@mac.com> | 2021-05-12 20:45:39 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2021-05-12 20:45:39 +0300 |
commit | 5826489fa46f5d143d84f476bbae082916fdff50 (patch) | |
tree | 2f5feb62422515319ccfcc97e260ca9859e2f878 | |
parent | 7dd0cb9acd46fcfb1936e81b6d9f53e40df9cdb5 (diff) | |
download | Servo-5826489fa46f5d143d84f476bbae082916fdff50.tar.gz Servo-5826489fa46f5d143d84f476bbae082916fdff50.tar.bz2 Servo-5826489fa46f5d143d84f476bbae082916fdff50.zip |
Fix middleware
-rw-r--r-- | settings.py | 6 |
1 files 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' |