Skip to content
Snippets Groups Projects

Main

3 files
+ 17
4
Compare changes
  • Side-by-side
  • Inline

Files

+ 12
0
@@ -12,6 +12,8 @@ https://docs.djangoproject.com/en/4.1/ref/settings/
from os import environ
from pathlib import Path
import sentry_sdk
env = environ
# Build paths inside the project like this: BASE_DIR / 'subdir'.
@@ -137,3 +139,13 @@ EMAIL_HOST = env.get("EMAIL_HOST")
EMAIL_HOST_USER = env.get("EMAIL_USER")
EMAIL_HOST_PASSWORD = env.get("EMAIL_PASSWORD")
DEFAULT_FROM_EMAIL = env.get("FROM_EMAIL")
ERROR_REPORTING = env.get("ERROR_REPORTING", False)
if ERROR_REPORTING and not DEBUG:
sentry_sdk.init(
dsn="https://1ea494bd0994743aed627c8dbf46183b@o4508272990093312.ingest.de.sentry.io/4508295867990096",
# of transactions for tracing.
traces_sample_rate=1.0, _experiments={ # Set continuous_profiling_auto_start to True
# to automatically start the profiler on when
# possible.
"continuous_profiling_auto_start": True, }, )
Loading