Adds raven/sentry
This commit is contained in:
1 parent
bb77310131
commit
a0da76e299
3 files changed
+12
-2
No files matched your search
@@ -1,4 +1,4 @@
|
||||
{% load staticfiles %}
|
||||
{% load staticfiles raven %}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head lang="en">
|
||||
@@ -12,6 +12,7 @@
|
||||
<script src="{% static "dist/scripts/vendor.js" %}"></script>
|
||||
<script src="{% static "dist/scripts/templates.js" %}"></script>
|
||||
<script src="{% static "dist/scripts/app.js" %}"></script>
|
||||
<script src="https://cdn.ravenjs.com/3.5.1/raven.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="toast-wrap"></div>
|
||||
@@ -28,5 +29,6 @@
|
||||
|
||||
</div>
|
||||
</footer>
|
||||
<script>Raven.config('{% sentry_public_dsn %}').install()</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -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 *
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user