diff --git a/settings.py b/settings.py index a186df3..1aef92a 100644 --- a/settings.py +++ b/settings.py @@ -4,6 +4,15 @@ import os import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration +sentry_sdk.init( + dsn="https://460e310d034c49a794941e087c4fcc6e@o74423.ingest.sentry.io/1196285", + integrations=[DjangoIntegration()], + + # If you wish to associate users to errors (assuming you are using + # django.contrib.auth) you may enable sending PII data. + send_default_pii=True +) + INSTALLED_ADDONS = [ # # Warning: text inside the INSTALLED_ADDONS tags is auto-generated. Manual changes will be overwritten. 'aldryn-addons', @@ -247,12 +256,3 @@ if not DEBUG: ] DATA_UPLOAD_MAX_MEMORY_SIZE = 1024 * 1024 * 1024 - -sentry_sdk.init( - dsn="https://460e310d034c49a794941e087c4fcc6e@o74423.ingest.sentry.io/1196285", - integrations=[DjangoIntegration()], - - # If you wish to associate users to errors (assuming you are using - # django.contrib.auth) you may enable sending PII data. - send_default_pii=True -)