File tree 1 file changed +16
-7
lines changed 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import os
6
6
7
+ from django .conf import settings
8
+
9
+ SECRET_KEY = 'CHANGE ME'
10
+
7
11
# All the normal settings apply. What's included here are the bits you'll have
8
12
# to customize.
9
13
10
14
# Add Haystack to INSTALLED_APPS. You can do this by simply placing in your list.
11
- INSTALLED_APPS = INSTALLED_APPS + [
15
+ INSTALLED_APPS = settings . INSTALLED_APPS + (
12
16
'haystack' ,
13
- ]
17
+ )
14
18
15
19
16
20
HAYSTACK_CONNECTIONS = {
21
25
'TIMEOUT' : 60 * 5 ,
22
26
'INCLUDE_SPELLING' : True ,
23
27
},
28
+ 'elasticsearch' : {
29
+ 'ENGINE' : 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine' ,
30
+ 'URL' : 'http://localhost:9200' ,
31
+ 'INDEX_NAME' : 'example_project'
32
+ },
24
33
'whoosh' : {
25
34
# For Whoosh:
26
35
'ENGINE' : 'haystack.backends.whoosh_backend.WhooshEngine' ,
31
40
# For Simple:
32
41
'ENGINE' : 'haystack.backends.simple_backend.SimpleEngine' ,
33
42
},
34
- 'xapian' : {
35
- # For Xapian (requires the third-party install):
36
- 'ENGINE' : 'xapian_backend.XapianEngine' ,
37
- 'PATH' : os .path .join (os .path .dirname (__file__ ), 'xapian_index' ),
38
- }
43
+ # 'xapian': {
44
+ # # For Xapian (requires the third-party install):
45
+ # 'ENGINE': 'xapian_backend.XapianEngine',
46
+ # 'PATH': os.path.join(os.path.dirname(__file__), 'xapian_index'),
47
+ # }
39
48
}
You can’t perform that action at this time.
0 commit comments