Commit 4a00d42c authored by Johan Bloemberg's avatar Johan Bloemberg

integrate sentry into django

parent 42a8c44d
......@@ -8,9 +8,12 @@ https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
from pkg_resources import get_distribution
__version__ = get_distribution(__name__.split('.', 1)[0]).version
# this application can run in 2 modes: admin and frontend
# admin exposes all routes and uses no caching. It should be restricted in access
# frontend only exposes the visitor facing routes and serves with cache headers
......@@ -472,3 +475,10 @@ ADMIN = bool(APPNAME == 'failmap-admin')
# general email address
MAILTO = 'info@faalkaart.nl'
if os.environ.get('SENTRY_DSN'):
INSTALLED_APPS += ('raven.contrib.django.raven_compat',)
RAVEN_CONFIG = {
'dsn': os.environ.get('SENTRY_DSN'),
'release': __version__,
}
......@@ -46,3 +46,6 @@ csscompressor # css compression
# brotlipy # doesn't work, some vague errors not worth the time: compression handled elsewhere
# slimit does not work with vue.js
django-proxy
# sentry client
raven
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment