2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-14 23:57:11 +00:00

Make troggle compatible with Django 3.1

This commit is contained in:
Philip Sargent
2021-04-19 01:32:18 +01:00
parent e17a21defd
commit 879f6c288e
7 changed files with 91 additions and 90 deletions

View File

@@ -141,6 +141,7 @@ MIDDLEWARE = [
'django.contrib.admindocs.middleware.XViewMiddleware', # this and docutils needed by admindocs
'django.contrib.messages.middleware.MessageMiddleware', # Cookie-based and session-based message support. Needed by admin system
'django.middleware.clickjacking.XFrameOptionsMiddleware', # clickjacking protection via the X-Frame-Options header
#'django.middleware.security.SecurityMiddleware', # SECURE_HSTS_SECONDS, SECURE_CONTENT_TYPE_NOSNIFF, SECURE_BROWSER_XSS_FILTER, SECURE_REFERRER_POLICY, and SECURE_SSL_REDIRECT
#'troggle.core.middleware.SmartAppendSlashMiddleware' # needs adapting after Dj2.0
]