Add Whoosh index

This commit is contained in:
Skia
2016-12-19 19:58:51 +01:00
committed by Skia
parent ac31c182c5
commit 5b95299bde
6 changed files with 34 additions and 1 deletions

View File

@ -46,6 +46,7 @@ INSTALLED_APPS = (
'django_jinja',
'rest_framework',
'ajax_select',
'haystack',
'core',
'club',
'subscription',
@ -142,6 +143,13 @@ TEMPLATES = [
},
]
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
'PATH': os.path.join(os.path.dirname(__file__), 'whoosh_index'),
},
}
WSGI_APPLICATION = 'sith.wsgi.application'