From b70f7d55b81d043fa96958c08521091b8c8fb5a9 Mon Sep 17 00:00:00 2001 From: Bojan Mihelac Date: Wed, 3 Sep 2014 10:38:36 +0200 Subject: [PATCH] Add MIDDLEWARE_CLASSES to test project settings Django 1.7. changed defaults --- tests/settings.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/settings.py b/tests/settings.py index f5c6db35e..150697dd9 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -24,6 +24,15 @@ SECRET_KEY = '2n6)=vnp8@bu0om9d05vwf7@=5vpn%)97-!d*t4zq1mku%0-@j' +MIDDLEWARE_CLASSES = ( + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +) + if os.environ.get('IMPORT_EXPORT_TEST_TYPE') == 'mysql-innodb': IMPORT_EXPORT_USE_TRANSACTIONS = True DATABASES = {