summaryrefslogtreecommitdiff
path: root/example_project
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-05-21 17:59:49 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-17 13:21:28 +0200
commit089635ad30f0f85a1d4f6211289948cc6f2eea8d (patch)
tree6ba19c2caa5e2230d98453a6ab6be32a662d169c /example_project
parentefc1f45c5340d53a2f2b8b532327e67cea9dcad6 (diff)
downloadIshtar-089635ad30f0f85a1d4f6211289948cc6f2eea8d.tar.bz2
Ishtar-089635ad30f0f85a1d4f6211289948cc6f2eea8d.zip
Celery: fix rabbitmq conf
Diffstat (limited to 'example_project')
-rw-r--r--example_project/settings.py5
1 files changed, 4 insertions, 1 deletions
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')