Skip to content
Browse files

Restored and updated Raven configuration.

  • Loading branch information...
1 parent d5c1e76 commit 2463fae1c6ad54f4466f6375fb516fc6b9dbd06c @aaugustin aaugustin committed
Showing with 9 additions and 9 deletions.
  1. +1 −1 deploy-requirements.txt
  2. +4 −4 django_docs/settings.py
  3. +4 −4 django_www/settings.py
View
2 deploy-requirements.txt
@@ -12,7 +12,7 @@ feedparser == 5.1.3
Jinja2 == 2.6
psycopg2 == 2.5
python-memcached == 1.48
-#raven == 4.0.3
+raven == 4.0.3
requests == 1.2.3
South == 0.7.6
Sphinx == 1.2
View
8 django_docs/settings.py
@@ -88,7 +88,7 @@
'debug_toolbar.middleware.DebugToolbarMiddleware')
# Log errors to Sentry instead of email, if available.
-#if 'sentry_dsn' in SECRETS and not DEBUG:
-# INSTALLED_APPS.append('raven.contrib.django')
-# SENTRY_DSN = SECRETS['sentry_dsn']
-# LOGGING["loggers"]["django.request"]["handlers"].remove("mail_admins")
+if 'sentry_dsn' in SECRETS and not DEBUG:
+ INSTALLED_APPS.append('raven.contrib.django.raven_compat')
+ RAVEN_CONFIG = {'dsn': SECRETS['sentry_dsn']}
+ LOGGING["loggers"]["django.request"]["handlers"].remove("mail_admins")
View
8 django_www/settings.py
@@ -121,7 +121,7 @@
'debug_toolbar.middleware.DebugToolbarMiddleware')
# Log errors to Sentry instead of email, if available.
-#if 'sentry_dsn' in SECRETS and not DEBUG:
-# INSTALLED_APPS.append('raven.contrib.django')
-# SENTRY_DSN = SECRETS['sentry_dsn']
-# LOGGING["loggers"]["django.request"]["handlers"].remove("mail_admins")
+if 'sentry_dsn' in SECRETS and not DEBUG:
+ INSTALLED_APPS.append('raven.contrib.django.raven_compat')
+ RAVEN_CONFIG = {'dsn': SECRETS['sentry_dsn']}
+ LOGGING["loggers"]["django.request"]["handlers"].remove("mail_admins")

0 comments on commit 2463fae

Please sign in to comment.
Something went wrong with that request. Please try again.