From cf85050e5fed137a9bac249e079d3813cc54cdf2 Mon Sep 17 00:00:00 2001 From: Tim Godfrey Date: Fri, 17 Aug 2018 16:49:15 +0200 Subject: [PATCH] Add supported default for CELERY_BROKER_URL --- CONTRIBUTORS.rst | 1 + {{cookiecutter.project_slug}}/config/settings/base.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index bbbfaf9a8..86149a766 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -158,6 +158,7 @@ Listed in alphabetical order. Taylor Baldwin Théo Segonds `@show0k`_ Tim Freund `@timfreund`_ + Tim Godfrey `@timmygee`_ Tom Atkins `@knitatoms`_ Tom Offermann Travis McNeill `@Travistock`_ @tavistock_esq diff --git a/{{cookiecutter.project_slug}}/config/settings/base.py b/{{cookiecutter.project_slug}}/config/settings/base.py index e4ab28844..fb7300a8e 100644 --- a/{{cookiecutter.project_slug}}/config/settings/base.py +++ b/{{cookiecutter.project_slug}}/config/settings/base.py @@ -233,7 +233,7 @@ if USE_TZ: # http://docs.celeryproject.org/en/latest/userguide/configuration.html#std:setting-timezone CELERY_TIMEZONE = TIME_ZONE # http://docs.celeryproject.org/en/latest/userguide/configuration.html#std:setting-broker_url -CELERY_BROKER_URL = env('CELERY_BROKER_URL') +CELERY_BROKER_URL = env('CELERY_BROKER_URL', default='amqp://') # http://docs.celeryproject.org/en/latest/userguide/configuration.html#std:setting-result_backend CELERY_RESULT_BACKEND = CELERY_BROKER_URL # http://docs.celeryproject.org/en/latest/userguide/configuration.html#std:setting-accept_content