diff options
Diffstat (limited to 'settings.py')
-rw-r--r-- | settings.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/settings.py b/settings.py index 15f139f..a8bff2e 100644 --- a/settings.py +++ b/settings.py @@ -127,7 +127,9 @@ INSTALLED_APPS = ( ) # See the recommended order of these in https://docs.djangoproject.com/en/2.2/ref/middleware/ -MIDDLEWARE_CLASSES = ( +# Note that tis is a radically different onion architecture though it looks the same, +# see https://docs.djangoproject.com/en/2.0/topics/http/middleware/#upgrading-pre-django-1-10-style-middleware +MIDDLEWARE = [ #'django.middleware.security.SecurityMiddleware', # SECURE_SSL_REDIRECT and SECURE_SSL_HOST # we don't use this 'django.middleware.gzip.GZipMiddleware', # not needed when expofiles and photos served by apache 'django.contrib.sessions.middleware.SessionMiddleware', # Manages sessions, if CSRF_USE_SESSIONS then it needs to be early @@ -137,8 +139,8 @@ MIDDLEWARE_CLASSES = ( '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 - 'troggle.middleware.SmartAppendSlashMiddleware' # doesn't seem to be working... -) + #'troggle.middleware.SmartAppendSlashMiddleware' # needs adapting after Dj2.0 +] ROOT_URLCONF = 'troggle.urls' |