diff --git a/network/settings.py b/network/settings.py index ffc1210..4c695f3 100644 --- a/network/settings.py +++ b/network/settings.py @@ -4,9 +4,9 @@ For local installation settings please copy .env-dist to .env and edit the appropriate settings in that file. You should not need to edit this file for local settings! """ -import sentry_sdk from decouple import Csv, config from dj_database_url import parse as db_url +from sentry_sdk import init as sentry_sdk_init from sentry_sdk.integrations.django import DjangoIntegration from unipath import Path @@ -238,7 +238,7 @@ LOGGING = { # Sentry SENTRY_ENABLED = config('SENTRY_ENABLED', default=False, cast=bool) if SENTRY_ENABLED: - sentry_sdk.init(dsn=config('SENTRY_DSN', default=''), integrations=[DjangoIntegration()]) + sentry_sdk_init(dsn=config('SENTRY_DSN', default=''), integrations=[DjangoIntegration()]) # Celery CELERY_ENABLE_UTC = USE_TZ