From 878b1dc9db7e7d775efbc5d87043c3bbe2c9e126 Mon Sep 17 00:00:00 2001 From: Kelvin Jayanoris Date: Tue, 25 Jun 2019 21:35:21 +0300 Subject: [PATCH] Add middleware to test settings --- tests/settings.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/settings.py b/tests/settings.py index fb02029..f837e54 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -35,6 +35,16 @@ } } +MIDDLEWARE = [ + "django.middleware.security.SecurityMiddleware", + "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", +] + TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates',