diff --git a/apps/kassa/templates/base.html b/apps/kassa/templates/base.html index 8e76945..1d5559d 100644 --- a/apps/kassa/templates/base.html +++ b/apps/kassa/templates/base.html @@ -1,4 +1,4 @@ -{% load staticfiles %} +{% load staticfiles raven %} @@ -12,6 +12,7 @@ +
@@ -28,5 +29,6 @@ + \ No newline at end of file diff --git a/kassasite/settings.py b/kassasite/settings.py index ce07126..1364756 100644 --- a/kassasite/settings.py +++ b/kassasite/settings.py @@ -11,6 +11,8 @@ https://docs.djangoproject.com/en/1.8/ref/settings/ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os +import raven + BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) @@ -39,7 +41,7 @@ INSTALLED_APPS = ( 'bootstrapform', 'django_extensions', 'corsheaders', - + 'raven.contrib.django.raven_compat', ) LOCAL_APPS = ('apps.kassa',) @@ -119,6 +121,11 @@ TEKSTMELDING_API_URL = 'https://tekstmelding.neuf.no/' CORS_ORIGIN_ALLOW_ALL = True +RAVEN_CONFIG = { + 'dsn': os.getenv('RAVEN_DSN'), + 'release': raven.fetch_git_sha(BASE_DIR) +} + # Local settings try: from .local_settings import * diff --git a/requirements.txt b/requirements.txt index 62fa2f1..276cb5f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,5 +6,6 @@ django-phonenumber-field==1.0.0 gunicorn==19.4.5 mysqlclient==1.3.7 pyldap==2.4.25.1 +raven==5.25.0 requests==2.9.1 django-auth-ldap==1.2.7