diff --git a/bundeswehrbung/settings.py b/bundeswehrbung/settings.py index 52c97d9..7a12a12 100644 --- a/bundeswehrbung/settings.py +++ b/bundeswehrbung/settings.py @@ -19,22 +19,6 @@ # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent - -sentry_sdk.init( - dsn="https://38ad8c7d598d4396a99291cf30a5f818@o4505573653020672.ingest.sentry.io/4505573656231936", - integrations=[DjangoIntegration()], - - # Set traces_sample_rate to 1.0 to capture 100% - # of transactions for performance monitoring. - # We recommend adjusting this value in production. - traces_sample_rate=1.0, - - # 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 -) - - # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/ @@ -149,6 +133,20 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' +sentry_sdk.init( + dsn="https://38ad8c7d598d4396a99291cf30a5f818@o4505573653020672.ingest.sentry.io/4505573656231936", + integrations=[DjangoIntegration()], + + # Set traces_sample_rate to 1.0 to capture 100% + # of transactions for performance monitoring. + # We recommend adjusting this value in production. + traces_sample_rate=1.0, + + # 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 +) + try: from bundeswehrbung.settings_local import * except ImportError: