Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added error logging to Sentry.

  • Loading branch information...
commit 24071b9e8a9ce09c36136d2db69f2aefa691dada 1 parent 0f26b66
@jacobian jacobian authored
Showing with 6 additions and 0 deletions.
  1. +1 −0  deploy-requirements.txt
  2. +5 −0 django_website/settings/www.py
View
1  deploy-requirements.txt
@@ -14,6 +14,7 @@ python-memcached >= 1.45, < 2.0
Sphinx >= 1.0, < 1.1
South >= 0.7, < 0.8
Unipath >= 0.2, < 0.3
+raven == 1.4.6
# django-contact-form doens't have a release compatible with Django 1.2.
http://bitbucket.org/ubernostrum/django-contact-form/get/tip.bz2
View
5 django_website/settings/www.py
@@ -194,3 +194,8 @@
MIDDLEWARE_CLASSES.insert(common_index+1, 'debug_toolbar.middleware.DebugToolbarMiddleware')
INTERNAL_IPS = ['127.0.0.1']
INSTALLED_APPS.append('debug_toolbar')
+
+# Log errors to Sentry, if available.
+if 'sentry_dsn' in SECRETS:
+ INSTALLED_APPS.append('raven.contrib.django')
+ SENTRY_DSN = SECRETS['sentry_dsn']
Please sign in to comment.
Something went wrong with that request. Please try again.