Skip to content

Commit

Permalink
Also enable Sentry on docs.dp.com.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobian committed Mar 21, 2012
1 parent 24071b9 commit 50e43fd
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions django_website/settings/docs.py
Expand Up @@ -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:
Expand Down

0 comments on commit 50e43fd

Please sign in to comment.