File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,11 @@ DATABASES = {{
25
25
}}
26
26
}}
27
27
28
+ # Haystack search engine backend configuration, see:
29
+ # http://docs.haystacksearch.org/dev/tutorial.html
30
+ HAYSTACK_SEARCH_ENGINE = 'whoosh'
31
+ HAYSTACK_WHOOSH_PATH = '%s/data/whoosh/djity_index' % PROJECT_ROOT
32
+
28
33
# in order to activate the django debug toolbar you will need to have it
29
34
# installed: 'pip install django-debug-toolbar'
30
35
DEBUG = {develop!r}
Original file line number Diff line number Diff line change
1
+ import haystack
2
+ haystack .autodiscover ()
Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ ADMIN_MEDIA_PREFIX = '/media/'
55
55
56
56
DAJAXICE_MEDIA_PREFIX="dajaxice" # Will create http://yourdomain.com/dajaxice/...
57
57
58
+ # Haystack configuration
59
+ HAYSTACK_SITECONF = 'search_sites'
60
+
58
61
# Make this unique, and don't share it with anybody.
59
62
SECRET_KEY = '+uf*31w)3i8w74)1(^6u%utlfyb^lzu_1_4rqt=+c55v*=lj3g'
60
63
@@ -108,6 +111,9 @@ INSTALLED_APPS = [
108
111
'dajaxice',
109
112
'dajax',
110
113
114
+ # Haystack for search
115
+ 'haystack',
116
+
111
117
#Djity Core
112
118
'djity.portlet',
113
119
'djity.style',
You can’t perform that action at this time.
0 commit comments