Last active
October 18, 2021 20:56
-
-
Save kesnel/76c2b10e59f9352056b62e89af90bd24 to your computer and use it in GitHub Desktop.
Middleware with whitenoise
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | |
# WhiteNoise | |
'whitenoise.middleware.WhiteNoiseMiddleware', | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment