diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-03-31 17:57:43 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-03-31 17:57:43 +0100 |
commit | a6ed0a964e8d3c99eff918d1fbe1abbd6c222460 (patch) | |
tree | ab086e476dadb3d0ccc9821bd1777c2129ffc71d /settings.py | |
parent | 3452c2c5d424f39e0dfc02d9c4121cfc434cd216 (diff) | |
download | troggle-a6ed0a964e8d3c99eff918d1fbe1abbd6c222460.tar.gz troggle-a6ed0a964e8d3c99eff918d1fbe1abbd6c222460.tar.bz2 troggle-a6ed0a964e8d3c99eff918d1fbe1abbd6c222460.zip |
making flat files delivery more robust
Diffstat (limited to 'settings.py')
-rw-r--r-- | settings.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/settings.py b/settings.py index af9c18d..f42e8eb 100644 --- a/settings.py +++ b/settings.py @@ -104,7 +104,7 @@ LOGBOOK_PARSER_SETTINGS = { "1982": ("1982/log.htm", "Parseloghtml01"), } -APPEND_SLASH = False +APPEND_SLASH = False # never relevant because we have urls that match unknown files and produce an 'edit this page' response SMART_APPEND_SLASH = True @@ -130,7 +130,7 @@ INSTALLED_APPS = ( # See the recommended order of these in https://docs.djangoproject.com/en/2.2/ref/middleware/ MIDDLEWARE_CLASSES = ( #'django.middleware.security.SecurityMiddleware', # SECURE_SSL_REDIRECT and SECURE_SSL_HOST # we don't use this - 'django.middleware.gzip.GZipMiddleware', # not needed as expofiles and photos served by apache + '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 'django.middleware.common.CommonMiddleware', # DISALLOWED_USER_AGENTS, APPEND_SLASH and PREPEND_WWW 'django.middleware.csrf.CsrfViewMiddleware', # Cross Site Request Forgeries by adding hidden form fields to POST @@ -138,20 +138,20 @@ 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' # + 'troggle.middleware.SmartAppendSlashMiddleware' # doesn't seem to be working... ) ROOT_URLCONF = 'troggle.urls' -WSGI_APPLICATION = 'troggle.wsgi.application' +WSGI_APPLICATION = 'troggle.wsgi.application' # change to asgi as soon as we upgrade to Django 3.0 ACCOUNT_ACTIVATION_DAYS=3 -AUTH_PROFILE_MODULE = 'core.person' +# AUTH_PROFILE_MODULE = 'core.person' # used by removed profiles app ? QM_PATTERN="\[\[\s*[Qq][Mm]:([ABC]?)(\d{4})-(\d*)-(\d*)\]\]" -# Re-enable TinyMCE when Dj upgraded to v3. Also templates/editflatpage.html +# Re-enable TinyMCE when Dj upgraded to v3. Also templates/editexpopage.html # TINYMCE_DEFAULT_CONFIG = { # 'plugins': "table,spellchecker,paste,searchreplace", # 'theme': "advanced", |