From a17c3d16072bb0e6902b1562928dda75e75dfed8 Mon Sep 17 00:00:00 2001 From: mdettelson Date: Fri, 2 Oct 2020 22:20:44 -0400 Subject: [PATCH] Adding celery broker URL --- {{cookiecutter.project_slug}}/docs/conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/{{cookiecutter.project_slug}}/docs/conf.py b/{{cookiecutter.project_slug}}/docs/conf.py index 691f351e5..66fc15965 100644 --- a/{{cookiecutter.project_slug}}/docs/conf.py +++ b/{{cookiecutter.project_slug}}/docs/conf.py @@ -17,6 +17,9 @@ import django {% if cookiecutter.use_docker == 'y' %} sys.path.insert(0, os.path.abspath("/app")) os.environ.setdefault("DATABASE_URL", "") +{% if cookiecutter.use_celery == 'y' -%} +os.environ.setdefault("CELERY_BROKER_URL", "") +{%- endif %} {% else %} sys.path.insert(0, os.path.abspath("..")) {%- endif %}