File tree Expand file tree Collapse file tree 2 files changed +6
-18
lines changed Expand file tree Collapse file tree 2 files changed +6
-18
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
2
3
- import django
4
-
5
3
from celery import Celery
6
4
7
5
app = Celery ('celery_haystack' )
34
32
CELERYD_LOG_LEVEL = "DEBUG"
35
33
CELERY_DEFAULT_QUEUE = "celery-haystack"
36
34
37
- if django .VERSION < (1 , 6 ):
38
- TEST_RUNNER = 'discover_runner.DiscoverRunner'
39
-
40
- if os .environ .get ('HAYSTACK' ) == 'v1' :
41
- HAYSTACK_SITECONF = 'celery_haystack.tests.search_sites'
42
- HAYSTACK_SEARCH_ENGINE = 'whoosh'
43
- HAYSTACK_WHOOSH_PATH = os .path .join (TEST_ROOT , 'whoosh_index' )
44
-
45
- elif os .environ .get ('HAYSTACK' ) == 'v2' :
46
- HAYSTACK_CONNECTIONS = {
47
- 'default' : {
48
- 'ENGINE' : 'haystack.backends.whoosh_backend.WhooshEngine' ,
49
- 'PATH' : os .path .join (TEST_ROOT , 'whoosh_index' ),
50
- }
35
+ HAYSTACK_CONNECTIONS = {
36
+ 'default' : {
37
+ 'ENGINE' : 'haystack.backends.whoosh_backend.WhooshEngine' ,
38
+ 'PATH' : os .path .join (TEST_ROOT , 'whoosh_index' ),
51
39
}
52
- HAYSTACK_SIGNAL_PROCESSOR = 'celery_haystack.signals.CelerySignalProcessor'
40
+ }
41
+ HAYSTACK_SIGNAL_PROCESSOR = 'celery_haystack.signals.CelerySignalProcessor'
Original file line number Diff line number Diff line change 1
- django-discover-runner
2
1
django-haystack==1.2.7
3
2
django-celery
4
3
celery
You can’t perform that action at this time.
0 commit comments