settings: Update MIDDLEWARE_CLASSES to MIDDLEWARE

MIDDLEWARE_CLASSES is deprecated in Django 1.10.
This commit is contained in:
Jelle van der Waa 2018-10-20 17:55:40 +02:00
parent f6cd7de9d1
commit 6bd14ee0c9

View File

@ -44,7 +44,7 @@
# Set django's User stuff to use our profile model # Set django's User stuff to use our profile model
AUTH_PROFILE_MODULE = 'devel.UserProfile' AUTH_PROFILE_MODULE = 'devel.UserProfile'
MIDDLEWARE_CLASSES = ( MIDDLEWARE = (
'django.middleware.common.CommonMiddleware', 'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.csrf.CsrfViewMiddleware',
@ -190,9 +190,9 @@
# Enable the debug toolbar if requested # Enable the debug toolbar if requested
if DEBUG_TOOLBAR: if DEBUG_TOOLBAR:
MIDDLEWARE_CLASSES = \ MIDDLEWARE = \
['debug_toolbar.middleware.DebugToolbarMiddleware'] + \ ['debug_toolbar.middleware.DebugToolbarMiddleware'] + \
list(MIDDLEWARE_CLASSES) list(MIDDLEWARE)
INSTALLED_APPS = list(INSTALLED_APPS) + ['debug_toolbar'] INSTALLED_APPS = list(INSTALLED_APPS) + ['debug_toolbar']