M testproject/testproject/settings/base.py => testproject/testproject/settings/base.py +1 -1
@@ 55,7 55,7 @@ INSTALLED_APPS = [
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
-MIDDLEWARE_CLASSES = [
+MIDDLEWARE = [
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
M testproject/testproject/settings/dev.py => testproject/testproject/settings/dev.py +1 -1
@@ 12,7 12,7 @@ EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
try:
import debug_toolbar # @UnusedImport
- MIDDLEWARE_CLASSES = list(MIDDLEWARE_CLASSES) + [
+ MIDDLEWARE = list(MIDDLEWARE) + [
'debug_toolbar.middleware.DebugToolbarMiddleware',
]
INSTALLED_APPS = list(INSTALLED_APPS) + ['debug_toolbar']
M tests/settings.py => tests/settings.py +1 -1
@@ 37,7 37,7 @@ INSTALLED_APPS = [
'wiki.plugins.macros.apps.MacrosConfig',
'wiki.plugins.globalhistory.apps.GlobalHistoryConfig',
]
-MIDDLEWARE_CLASSES = [
+MIDDLEWARE = [
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',