Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Restored and updated Raven configuration.

  • Loading branch information...
commit 2463fae1c6ad54f4466f6375fb516fc6b9dbd06c 1 parent d5c1e76
@aaugustin aaugustin authored
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")
Please sign in to comment.
Something went wrong with that request. Please try again.