summaryrefslogtreecommitdiff
path: root/example_project/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'example_project/settings.py')
-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')