mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-09 22:44:54 +03:00
Merge a727303965
into 256ff797a6
This commit is contained in:
commit
b0cc42d1cb
|
@ -233,7 +233,12 @@ if USE_TZ:
|
||||||
# http://docs.celeryproject.org/en/latest/userguide/configuration.html#std:setting-timezone
|
# http://docs.celeryproject.org/en/latest/userguide/configuration.html#std:setting-timezone
|
||||||
CELERY_TIMEZONE = TIME_ZONE
|
CELERY_TIMEZONE = TIME_ZONE
|
||||||
# http://docs.celeryproject.org/en/latest/userguide/configuration.html#std:setting-broker_url
|
# 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')
|
||||||
|
{%- else %}
|
||||||
|
CELERY_BROKER_URL = env('CELERY_BROKER_URL', default="redis://localhost:6379")
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
# http://docs.celeryproject.org/en/latest/userguide/configuration.html#std:setting-result_backend
|
# http://docs.celeryproject.org/en/latest/userguide/configuration.html#std:setting-result_backend
|
||||||
CELERY_RESULT_BACKEND = CELERY_BROKER_URL
|
CELERY_RESULT_BACKEND = CELERY_BROKER_URL
|
||||||
# http://docs.celeryproject.org/en/latest/userguide/configuration.html#std:setting-accept_content
|
# http://docs.celeryproject.org/en/latest/userguide/configuration.html#std:setting-accept_content
|
||||||
|
|
Loading…
Reference in New Issue
Block a user