Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings changes to make search indexing work #169

Merged
merged 5 commits into from
Apr 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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