diff --git a/taccsite_cms/settings.py b/taccsite_cms/settings.py index e53f3bfb0..417ae44a3 100644 --- a/taccsite_cms/settings.py +++ b/taccsite_cms/settings.py @@ -235,6 +235,7 @@ def getsecrets(): 'djangocms_bootstrap4.contrib.bootstrap4_tabs', 'djangocms_bootstrap4.contrib.bootstrap4_utilities', 'haystack', + 'aldryn_apphooks_config', 'taccsite_cms', ] @@ -378,7 +379,6 @@ def get_subdirs_as_module_names(path): # Blog/News # 'filer', # Already added # 'easy_thumbnails', # Already added - 'aldryn_apphooks_config', 'parler', 'taggit', 'taggit_autosuggest', @@ -459,6 +459,9 @@ def get_subdirs_as_module_names(path): SETTINGS_EXPORT_VARIABLE_NAME = 'settings' # Elasticsearch Indexing +HAYSTACK_ROUTERS = ['aldryn_search.router.LanguageRouter',] +ALDRYN_SEARCH_DEFAULT_LANGUAGE = 'en' +ALDRYN_SEARCH_REGISTER_APPHOOK = True HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',