Commit 78b61642 authored by Sli's avatar Sli

Merge branch 'new_django' into 'master'

core: rename MIDDLEWARE_CLASSES into MIDDLEWARE

See merge request !219
parents f922ab92 f500dec1
Pipeline #1897 passed with stage
in 35 minutes and 32 seconds
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment