Commit 55c493a1 authored by Ilya Simonov's avatar Ilya Simonov

fix redis settings

parent 687f2034
......@@ -142,9 +142,8 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static')
# Celery
# https://docs.celeryq.dev/en/stable/django/first-steps-with-django.html#using-celery-with-django
REDIS_HOST = '127.0.0.1'
REDIS_PORT = '6379'
CELERY_BROKER_URL = env('CELERY_BROKER_URL', default=f'redis://{REDIS_HOST}:{REDIS_PORT}')
REDIS_URL = env('REDIS_URL', default=f'redis://127.0.0.1:6379')
CELERY_BROKER_URL = env('CELERY_BROKER_URL', default=f'{REDIS_URL}')
CELERY_BEAT_SCHEDULER = 'django_celery_beat.schedulers:DatabaseScheduler'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment