use new MIDDLEWARE setting (since Django 1.10)
MIDDLEWARE_CLASSES was removed in Django 2.0.
This commit is contained in:
parent
9a6772b74a
commit
6ecee32398
@ -156,7 +156,7 @@ TEMPLATES = [
|
||||
},
|
||||
]
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
MIDDLEWARE = (
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.locale.LocaleMiddleware',
|
||||
|
@ -19,9 +19,9 @@ WWW_IPV6_HOST = 'ip6-localhost:8000'
|
||||
|
||||
# ALLOWED_HOSTS is not needed here, as DEBUG is True
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
MIDDLEWARE = (
|
||||
'debug_toolbar.middleware.DebugToolbarMiddleware',
|
||||
) + MIDDLEWARE_CLASSES
|
||||
) + MIDDLEWARE
|
||||
INTERNAL_IPS = ['127.0.0.1', '::1', ] # needed for DebugToolbar!
|
||||
|
||||
DEBUG_TOOLBAR_PATCH_SETTINGS = False
|
||||
|
Loading…
x
Reference in New Issue
Block a user