diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2020-07-26 23:38:17 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2020-07-26 23:38:17 +0100 |
commit | 0403c68429244e7db92af9714fe48cbf3d896752 (patch) | |
tree | 935abb914f88101d97e4ba1f7cd966afcbe2a7e6 /settings.py | |
parent | f1ceb38f5fe285a8747dd6258de4ecaebb49d67a (diff) | |
download | troggle-0403c68429244e7db92af9714fe48cbf3d896752.tar.gz troggle-0403c68429244e7db92af9714fe48cbf3d896752.tar.bz2 troggle-0403c68429244e7db92af9714fe48cbf3d896752.zip |
enabling django/admin/ auto documentn. functions
Diffstat (limited to 'settings.py')
-rw-r--r-- | settings.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/settings.py b/settings.py index 7ca6ec2..78550d8 100644 --- a/settings.py +++ b/settings.py @@ -108,6 +108,7 @@ INSTALLED_APPS = ( 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', + 'django.contrib.admindocs', # 'django.contrib.staticfiles', # apparently not working. Using workarounds with flatpages 'registration', # only for expo user. REPLACE with another non-admin, contrib.auth user ? 'troggle.profiles', # Probably don't need this at all @@ -121,6 +122,7 @@ MIDDLEWARE_CLASSES = ( '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 'django.contrib.auth.middleware.AuthenticationMiddleware', # Adds the user attribute, representing the currently-logged-in user, to every incoming HttpRequest + 'django.contrib.admindocs.middleware.XViewMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', # Cookie-based and session-based message support 'django.middleware.clickjacking.XFrameOptionsMiddleware', # lickjacking protection via the X-Frame-Options header 'troggle.middleware.SmartAppendSlashMiddleware' # Outdated & unneeded? |