|
1
|
|
2
|
|
4
我是用Django-cms及django-cms-search, 需要倚賴Django-haystack
settings.py HAYSTACK_SEARCH_ENGINE = 'whoosh' HAYSTACK_WHOOSH_PATH = os.path.join(os.path.dirname(__file__), 'whoosh_index'), HAYSTACK_SITECONF = 'cmsplugin_search.search_indexes' |
|
5
@foonpcf 我记得文档里应该是这样的吧
```import os HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', 'PATH': os.path.join(os.path.dirname(__file__), 'whoosh_index'), }, }``` |
|
6
还有检查下haystack的版本,好像版本不对是有问题的。
|
|
7
版本是django-haystack 1.2.7
|