From 2a83248cacfda762f796e7736e9787eec8cb62f4 Mon Sep 17 00:00:00 2001 From: Fahd Date: Thu, 18 Jan 2018 14:37:39 +0800 Subject: [PATCH] Made MIDDLEWARE section Django v2 compliant --- dj_diabetes/settings.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dj_diabetes/settings.py b/dj_diabetes/settings.py index 9629918..987ebc1 100644 --- a/dj_diabetes/settings.py +++ b/dj_diabetes/settings.py @@ -40,13 +40,12 @@ 'dj_diabetes', ] -MIDDLEWARE_CLASSES = [ +MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ]