Skip to content

Commit

Permalink
Merge pull request #2180 from iksaif/pr-raven
Browse files Browse the repository at this point in the history
graphite: add support for raven/sentry.io (optional)
  • Loading branch information
iksaif committed Jan 5, 2018
2 parents fc8759f + 984cccc commit 561c899
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion webapp/graphite/app_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
# DO NOT MODIFY THIS FILE DIRECTLY - use local_settings.py instead
from os.path import dirname, join, abspath
from django import VERSION as DJANGO_VERSION

try:
import raven
except ImportError:
raven = None

#Django settings below, do not touch!
APPEND_SLASH = False
Expand Down Expand Up @@ -92,6 +95,9 @@
'django.contrib.staticfiles',
'tagging',
)
if raven is not None:
INSTALLED_APPS.append('raven.contrib.django.raven_compat')


AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']

Expand Down

0 comments on commit 561c899

Please sign in to comment.