Merge branch 'new_django' into 'master'

core: rename MIDDLEWARE_CLASSES into MIDDLEWARE

See merge request ae/Sith!219
This commit is contained in:
Antoine Bartuccio 2019-07-08 15:18:21 +02:00
commit 78b616427f

View File

@ -95,7 +95,7 @@ INSTALLED_APPS = (
"matmat",
)
MIDDLEWARE_CLASSES = (
MIDDLEWARE = (
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
@ -564,9 +564,7 @@ except:
if DEBUG:
INSTALLED_APPS += ("debug_toolbar",)
MIDDLEWARE_CLASSES = (
"debug_toolbar.middleware.DebugToolbarMiddleware",
) + MIDDLEWARE_CLASSES
MIDDLEWARE = ("debug_toolbar.middleware.DebugToolbarMiddleware",) + MIDDLEWARE
DEBUG_TOOLBAR_PANELS = [
"debug_toolbar.panels.versions.VersionsPanel",
"debug_toolbar.panels.timer.TimerPanel",