Fix raven integration

This commit is contained in:
Raphael Michel
2017-07-17 20:29:56 +02:00
parent f900c842cb
commit 130f619b05
8 changed files with 83 additions and 20 deletions

View File

@@ -1,4 +1,5 @@
from django.apps import AppConfig
from django.conf import settings
class PretixBaseConfig(AppConfig):
@@ -17,6 +18,10 @@ class PretixBaseConfig(AppConfig):
except ImportError:
pass
if hasattr(settings, 'RAVEN_CONFIG'):
from ..sentry import initialize
initialize()
default_app_config = 'pretix.base.PretixBaseConfig'
try: