From 089635ad30f0f85a1d4f6211289948cc6f2eea8d Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 21 May 2019 17:59:49 +0200 Subject: Celery: fix rabbitmq conf --- example_project/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'example_project/settings.py') diff --git a/example_project/settings.py b/example_project/settings.py index a3c5318db..c479d1bae 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -278,6 +278,8 @@ DOT_BINARY = "" TEST_RUNNER = 'ishtar_common.tests.ManagedModelTestRunner' +CELERY_BROKER_URL = '' + try: from local_settings import * except ImportError as e: @@ -325,7 +327,8 @@ if DEBUG: LOGGING['loggers'][logger]['handlers'] += ['console'] if USE_BACKGROUND_TASK: - CELERY_BROKER_URL = 'amqp://localhost' + if not CELERY_BROKER_URL: + CELERY_BROKER_URL = 'amqp://localhost' if DJANGO_EXTENSIONS: INSTALLED_APPS.append('django_extensions') -- cgit v1.2.3