Skip to content

Commit

Permalink
Merge pull request #169 from TACC/conf/make-searchable
Browse files Browse the repository at this point in the history
Settings changes to make search indexing work
  • Loading branch information
wesleyboar authored Apr 8, 2021
2 parents af6d75c + 64b2049 commit 54390c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion taccsite_cms/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ def getsecrets():
'djangocms_bootstrap4.contrib.bootstrap4_tabs',
'djangocms_bootstrap4.contrib.bootstrap4_utilities',
'haystack',
'aldryn_apphooks_config',
'taccsite_cms',
]

Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 54390c9

Please sign in to comment.