Skip to content

Commit

Permalink
Upgrade Django middleware settings
Browse files Browse the repository at this point in the history
  • Loading branch information
MauricioFauth committed Mar 18, 2023
1 parent 0f129b4 commit bfef788
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pmaweb/settings.py
Expand Up @@ -75,15 +75,15 @@
'pmaweb',
)

MIDDLEWARE_CLASSES = (
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.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
]

TEMPLATES = [
{
Expand Down

0 comments on commit bfef788

Please sign in to comment.