Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Also enable Sentry on docs.dp.com.

  • Loading branch information...
commit 50e43fd365d5d3eff7a5d5a0171754f333515d0e 1 parent 24071b9
@jacobian jacobian authored
Showing with 9 additions and 4 deletions.
  1. +9 −4 django_website/settings/docs.py
View
13 django_website/settings/docs.py
@@ -6,13 +6,18 @@
ROOT_URLCONF = 'django_website.urls.docs'
CACHE_MIDDLEWARE_KEY_PREFIX = 'djangodocs'
-_has_ddt = 'debug_toolbar' in INSTALLED_APPS
-INSTALLED_APPS = [
+# Override INSTALLED_APPS so that we only have a few things running on docs.
+# Keep around debug_toolbar and raven if the parent settings module installed
+# them.
+_new_apps = [
'django_website.docs',
'haystack',
]
-if _has_ddt:
- INSTALLED_APPS.append('debug_toolbar')
+if 'debug_toolbar' in INSTALLED_APPS:
+ _new_apps.append('debug_toolbar')
+if 'raven.contrib.django' in INSTALLED_APPS:
+ _new_apps.append('raven.contrib.django')
+INSTALLED_APPS = _new_apps
# Where to store the build Sphinx docs.
if PRODUCTION:
Please sign in to comment.
Something went wrong with that request. Please try again.