really add sentry/raven support

This commit is contained in:
Thomas Noel 2014-03-17 09:59:51 +01:00
parent 371245abb5
commit ef1996fd59
1 changed files with 5 additions and 0 deletions

View File

@ -301,3 +301,8 @@ if DEBUG_TOOLBAR:
INSTALLED_APPS += ('debug_toolbar',)
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
# sentry needs more
if SENTRY_DSN:
RAVEN_CONFIG = {'dsn': SENTRY_DSN}
INSTALLED_APPS += ('raven.contrib.django.raven_compat',)