diff --git a/shiftregister/settings.py b/shiftregister/settings.py index 169b8f8..3943251 100644 --- a/shiftregister/settings.py +++ b/shiftregister/settings.py @@ -154,11 +154,9 @@ STATIC_URL = "static/" DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" -CELERY_BROKER_URL = env.url( - "CELERY_BROKER_URL", default="amqp://guest:guest@localhost:5672//" -) +CELERY_BROKER_URL = env("CELERY_BROKER_URL", default="amqp://guest:guest@localhost:5672//") -CELERY_RESULT_BACKEND = env.url("CELERY_RESULT_BACKEND", default="redis://") +CELERY_RESULT_BACKEND = env("CELERY_RESULT_BACKEND", default="redis://") CELERY_BEAT_SCHEDULE = { "import-shifts-every-60-seconds": { @@ -187,7 +185,7 @@ CELERY_BEAT_SCHEDULE_FILENAME = str(BASE_DIR / "storage" / "celerybeat-schedule" if env("SENTRY_DSN", default=None): sentry_sdk.init( - dsn=env.url("SENTRY_DSN"), + dsn=env("SENTRY_DSN"), integrations=[CeleryIntegration(), DjangoIntegration()], auto_session_tracking=False, traces_sample_rate=0,