import CloudSearch

This commit is contained in:
James Turk 2012-04-17 18:09:58 -04:00
parent 9fb39db5cd
commit b697641e13

View File

@ -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