Better default value for CELERY_BROKER_URL with Docker

This commit is contained in:
Bruno Alla 2018-08-15 10:42:54 +01:00
parent 03636a9dbe
commit 01fca91e26

View File

@ -234,7 +234,7 @@ if USE_TZ:
CELERY_TIMEZONE = TIME_ZONE
# http://docs.celeryproject.org/en/latest/userguide/configuration.html#std:setting-broker_url
{% if cookiecutter.use_docker == 'y' -%}
CELERY_BROKER_URL = env('CELERY_BROKER_URL')
CELERY_BROKER_URL = env('CELERY_BROKER_URL', default="redis://redis:6379/0")
{%- else %}
CELERY_BROKER_URL = env('CELERY_BROKER_URL', default="redis://localhost:6379")
{%- endif %}