diff --git a/oyster/ext/cloudsearch.py b/oyster/ext/cloudsearch.py index a8ace5d..e9bf1ce 100644 --- a/oyster/ext/cloudsearch.py +++ b/oyster/ext/cloudsearch.py @@ -1,10 +1,16 @@ +# needed so we can import cloudsearch +from __future__ import absolute_import + from celery.task.base import Task from ..core import kernel from ..conf import settings +from cloudsearch import CloudSearch + cs = CloudSearch(settings.CLOUDSEARCH_DOMAIN, settings.CLOUDSEARCH_ID, 20) + class CloudSearchPush(Task): """ task that updates documents """ # results go straight to database