Adding celery broker URL

This commit is contained in:
mdettelson 2020-10-02 22:20:44 -04:00 committed by GitHub
parent 77b1d06e87
commit a17c3d1607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,9 @@ import django
{% if cookiecutter.use_docker == 'y' %} {% if cookiecutter.use_docker == 'y' %}
sys.path.insert(0, os.path.abspath("/app")) sys.path.insert(0, os.path.abspath("/app"))
os.environ.setdefault("DATABASE_URL", "") os.environ.setdefault("DATABASE_URL", "")
{% if cookiecutter.use_celery == 'y' -%}
os.environ.setdefault("CELERY_BROKER_URL", "")
{%- endif %}
{% else %} {% else %}
sys.path.insert(0, os.path.abspath("..")) sys.path.insert(0, os.path.abspath(".."))
{%- endif %} {%- endif %}