mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Add Whoosh index
This commit is contained in:
@ -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'
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user