~netlandish/django-wiki

6ce234c5446d5465d60ee7fbc14b0eedc6013c69 — Raffaele Salmaso 6 years ago c425215
Use MIDDLEWARE instead of MIDDLEWARE_CLASSES
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',