summaryrefslogtreecommitdiffstats
path: root/settings.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-07-26 23:38:17 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2020-07-26 23:38:17 +0100
commit0403c68429244e7db92af9714fe48cbf3d896752 (patch)
tree935abb914f88101d97e4ba1f7cd966afcbe2a7e6 /settings.py
parentf1ceb38f5fe285a8747dd6258de4ecaebb49d67a (diff)
downloadtroggle-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.py2
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?