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
commit630bb9823ed828079dbc44c3def88cdd49850b0f (patch)
tree6ba19c2caa5e2230d98453a6ab6be32a662d169c /example_project
parentf2c1f9265ed0a4f8bf3e65d45787d6b8e34c6182 (diff)
downloadIshtar-630bb9823ed828079dbc44c3def88cdd49850b0f.tar.bz2
Ishtar-630bb9823ed828079dbc44c3def88cdd49850b0f.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')