diff --git a/tfjm/settings.py b/tfjm/settings.py index 12321e8..faea1b2 100644 --- a/tfjm/settings.py +++ b/tfjm/settings.py @@ -203,9 +203,7 @@ DJANGO_TABLES2_TEMPLATE = 'django_tables2/bootstrap5.html' HAYSTACK_CONNECTIONS = { 'default': { - 'ENGINE': 'haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine', - 'URL': 'http://elasticsearch:9200/', - 'INDEX_NAME': 'haystack', + 'ENGINE': 'haystack.backends.simple_backend.SimpleEngine', } } diff --git a/tfjm/settings_prod.py b/tfjm/settings_prod.py index 455a685..f53ec92 100644 --- a/tfjm/settings_prod.py +++ b/tfjm/settings_prod.py @@ -39,3 +39,11 @@ CHANNEL_LAYERS = { }, }, } + +HAYSTACK_CONNECTIONS = { + 'default': { + 'ENGINE': 'haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine', + 'URL': 'http://elasticsearch:9200/', + 'INDEX_NAME': 'haystack', + } +}