|
|
|
|
@ -30,7 +30,6 @@ INSTALLED_APPS.extend([
|
|
|
|
|
'fontawesome',
|
|
|
|
|
'haystack',
|
|
|
|
|
'aldryn_search',
|
|
|
|
|
'spurl',
|
|
|
|
|
'image_cropping',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
@ -55,19 +54,23 @@ MAILCHIMP_LIST_ID = 'da4143acda'
|
|
|
|
|
# ALDRYN_SEARCH_DEFAULT_LANGUAGE = 'de'
|
|
|
|
|
ALDRYN_SEARCH_INDEX_BASE_CLASS = 'project.search.SearchIndex'
|
|
|
|
|
|
|
|
|
|
ALDRYN_SEARCH_EXCLUDED_PLUGINS = [
|
|
|
|
|
'NewsletterSubscriptionPlugin', 'NewsletterArchivePlugin'
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
HAYSTACK_CUSTOM_HIGHLIGHTER = 'project.search.Highlighter'
|
|
|
|
|
HAYSTACK_DEFAULT_OPERATOR = 'OR'
|
|
|
|
|
HAYSTACK_CONNECTIONS = {
|
|
|
|
|
'default': {
|
|
|
|
|
'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
|
|
|
|
|
'PATH': os.path.join(os.path.dirname(__file__), 'data', 'whoosh', 'default'),
|
|
|
|
|
'PATH': os.path.join('/tmp/whoosh', 'default'),
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
for lang_code, lang in LANGUAGES:
|
|
|
|
|
HAYSTACK_CONNECTIONS[lang_code] = {}
|
|
|
|
|
HAYSTACK_CONNECTIONS[lang_code].update({
|
|
|
|
|
'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
|
|
|
|
|
'PATH': os.path.join(os.path.dirname(__file__), 'data', 'whoosh', lang_code),
|
|
|
|
|
'PATH': os.path.join('/tmp/whoosh', lang_code),
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
HAYSTACK_ROUTERS = ['aldryn_search.router.LanguageRouter', ]
|
|
|
|
|
@ -218,4 +221,4 @@ FILER_STORAGES = {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|