mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-22 07:11:52 +00:00
enabling django/admin/ auto documentn. functions
This commit is contained in:
parent
f1ceb38f5f
commit
0403c68429
@ -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?
|
||||
|
2
urls.py
2
urls.py
@ -89,7 +89,7 @@ actualurlpatterns = [
|
||||
url(r'^cave/(?P<cave_id>[^/]+)/qm\.csv/?$', views_other.downloadQMs, name="downloadqms"),
|
||||
url(r'^downloadqms$', views_other.downloadQMs),
|
||||
|
||||
url(r'^admin/doc/?', include('django.contrib.admindocs.urls')), # needs docutils Python module (http://docutils.sf.net/).
|
||||
url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # needs docutils Python module (http://docutils.sf.net/).
|
||||
url(r'^admin/', admin.site.urls),
|
||||
url(r'^accounts/', include('registration.backends.default.urls')), # needed to log in!
|
||||
# url(r'^profiles/', include('profiles.urls')), # not used ? Delete this entire app then.
|
||||
|
Loading…
Reference in New Issue
Block a user