From d1df7374747f4fd4e3de941d883d7a331d2f8316 Mon Sep 17 00:00:00 2001 From: James Turk Date: Tue, 27 Sep 2011 17:24:47 -0400 Subject: [PATCH] use MONGO_ settings for broker --- oyster/celeryconfig.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oyster/celeryconfig.py b/oyster/celeryconfig.py index a1c6af6..a68dddc 100644 --- a/oyster/celeryconfig.py +++ b/oyster/celeryconfig.py @@ -3,8 +3,10 @@ from oyster.conf import settings CELERY_IMPORTS = ("oyster.tasks",) BROKER_TRANSPORT = 'mongodb' -CELERY_RESULT_BACKEND = 'mongodb' +BROKER_HOST = settings.MONGO_HOST +BROKER_PORT = settings.MONGO_PORT +CELERY_RESULT_BACKEND = 'mongodb' CELERY_MONGODB_BACKEND_SETTINGS = { 'host': settings.MONGO_HOST, 'port': settings.MONGO_PORT,