diff --git a/project/settings.py b/project/settings.py index 743fb0fb..9785e9ca 100644 --- a/project/settings.py +++ b/project/settings.py @@ -11,10 +11,13 @@ https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os +import raven + from celery.schedules import crontab from collections import OrderedDict from datetime import timedelta + # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) @@ -53,6 +56,7 @@ INSTALLED_APPS = [ 'constance', 'constance.backends.database', 'sorl.thumbnail', + 'raven.contrib.django.raven_compat', ] + [ 'apps.auth.apps', 'apps.user', @@ -290,3 +294,11 @@ if DEBUG: SWAGGER_SETTINGS = { 'DOC_EXPANSION': 'none', } + +# Raven settings +RAVEN_CONFIG = { + 'dsn': 'https://bff536c4d71c4166afb91f83b9f73d55:ca47ad791a53480b9d40a85a26abf141@sentry.io/306843', + # If you are using git, you can also automatically configure the + # release based on the git info. + 'release': raven.fetch_git_sha(BASE_DIR), +} diff --git a/requirements.txt b/requirements.txt index cf55c8a3..710cf88d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,6 +18,7 @@ gunicorn==19.7.1 mixpanel==4.3.2 psycopg2-binary==2.7.4 Pillow==5.0.0 +raven==6.6.0 requests==2.18.4 sorl-thumbnail==12.4.1 twilio==6.10.5 diff --git a/sentry b/sentry new file mode 160000 index 00000000..a514caf9 --- /dev/null +++ b/sentry @@ -0,0 +1 @@ +Subproject commit a514caf906fa22a66eaf6532a721a9393177d2ff