if SENTRY_DSN := env("DJANGO_SENTRY_DSN", default=None): sentry_sdk.init( dsn=SENTRY_DSN, integrations=[DjangoIntegration(), RedisIntegration()], )