2
0
Fork 0

fix(settings.py): using env.url() where not appropriate
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Luca 2024-05-10 01:08:30 +02:00
parent 4b6bcbb9f3
commit c88122ada8
1 changed files with 3 additions and 5 deletions

View File

@ -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,