diff --git a/requirements.txt b/requirements.txt index ceb3961e..497a614a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -62,3 +62,5 @@ django-uuidfield==0.5.0 # Ticket qrcode==5.1 jsonfield==1.0.3 + +raven==6.1.0 diff --git a/settings/dev.py.sample b/settings/dev.py.sample index 77797bfb..2e845ada 100644 --- a/settings/dev.py.sample +++ b/settings/dev.py.sample @@ -2,6 +2,7 @@ from __future__ import absolute_import, unicode_literals import os +import raven from .common import * # noqa @@ -30,3 +31,11 @@ BROKER_URL = os.environ.get("BROKER_URL", "redis://127.0.0.1:6379/0") CELERY_RESULT_BACKEND = os.environ.get("CELERY_RESULT_BACKEND", 'redis://127.0.0.1:6379/0') SPAM_MODERATION_ADMINS = [] + + +RAVEN_CONFIG = { + 'dsn': 'https://:@sentry.io/', + # If you are using git, you can also automatically configure the + # release based on the git info. + 'release': raven.fetch_git_sha(os.path.dirname(os.pardir)), +}