]> git.0d.be Git - panikdb.git/commitdiff
settings: switch to MIDDLEWARE
authorFrédéric Péters <fpeters@0d.be>
Sun, 14 Jun 2020 09:44:21 +0000 (11:44 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sun, 14 Jun 2020 09:44:21 +0000 (11:44 +0200)
panikdb/settings.py

index ba9a885a8ae8bd566f9b16c827d7c1e08f22d2e1..14cd7d8e8887012ac6773e6b3f634fc54aef7610 100644 (file)
@@ -121,8 +121,7 @@ TEMPLATES = [
 ]
 
 
-
-MIDDLEWARE_CLASSES = (
+MIDDLEWARE = (
     'django.middleware.common.CommonMiddleware',
     'django.contrib.sessions.middleware.SessionMiddleware',
     'django.middleware.csrf.CsrfViewMiddleware',
@@ -288,7 +287,7 @@ if os.path.exists(local_settings_file):
 
 
 if DEBUG and DEBUG_TOOLBAR:
-    MIDDLEWARE_CLASSES += (
+    MIDDLEWARE += (
         'debug_toolbar.middleware.DebugToolbarMiddleware',
     )
     INSTALLED_APPS += (