Skip to content

Commit

Permalink
Add middleware to test settings
Browse files Browse the repository at this point in the history
  • Loading branch information
moshthepitt committed Jun 25, 2019
1 parent ad24986 commit 878b1dc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 878b1dc

Please sign in to comment.