mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
Merge branch 'new_django' into 'master'
core: rename MIDDLEWARE_CLASSES into MIDDLEWARE See merge request ae/Sith!219
This commit is contained in:
commit
78b616427f
@ -95,7 +95,7 @@ INSTALLED_APPS = (
|
|||||||
"matmat",
|
"matmat",
|
||||||
)
|
)
|
||||||
|
|
||||||
MIDDLEWARE_CLASSES = (
|
MIDDLEWARE = (
|
||||||
"django.contrib.sessions.middleware.SessionMiddleware",
|
"django.contrib.sessions.middleware.SessionMiddleware",
|
||||||
"django.middleware.common.CommonMiddleware",
|
"django.middleware.common.CommonMiddleware",
|
||||||
"django.middleware.csrf.CsrfViewMiddleware",
|
"django.middleware.csrf.CsrfViewMiddleware",
|
||||||
@ -564,9 +564,7 @@ except:
|
|||||||
|
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
INSTALLED_APPS += ("debug_toolbar",)
|
INSTALLED_APPS += ("debug_toolbar",)
|
||||||
MIDDLEWARE_CLASSES = (
|
MIDDLEWARE = ("debug_toolbar.middleware.DebugToolbarMiddleware",) + MIDDLEWARE
|
||||||
"debug_toolbar.middleware.DebugToolbarMiddleware",
|
|
||||||
) + MIDDLEWARE_CLASSES
|
|
||||||
DEBUG_TOOLBAR_PANELS = [
|
DEBUG_TOOLBAR_PANELS = [
|
||||||
"debug_toolbar.panels.versions.VersionsPanel",
|
"debug_toolbar.panels.versions.VersionsPanel",
|
||||||
"debug_toolbar.panels.timer.TimerPanel",
|
"debug_toolbar.panels.timer.TimerPanel",
|
||||||
|
Loading…
Reference in New Issue
Block a user