diff --git a/ocdstoucan/settings.py b/ocdstoucan/settings.py index 3aa5ae6..23cedcf 100644 --- a/ocdstoucan/settings.py +++ b/ocdstoucan/settings.py @@ -15,6 +15,7 @@ import sentry_sdk from django.utils.translation import gettext_lazy as _ from sentry_sdk.integrations.django import DjangoIntegration +from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) @@ -145,5 +146,5 @@ if os.getenv('SENTRY_DSN') is not None: sentry_sdk.init( dsn=os.getenv('SENTRY_DSN'), - integrations=[DjangoIntegration()] + integrations=[DjangoIntegration(), SqlalchemyIntegration()] )