import CloudSearch
This commit is contained in:
parent
9fb39db5cd
commit
b697641e13
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user