1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-23 11:56:37 +02:00

Haystack may be used in dev mode if we have an ElasticSearch URL

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-01-16 22:36:25 +01:00
parent c5a8581a80
commit 7919b34d2b
2 changed files with 6 additions and 15 deletions

View File

@ -38,12 +38,4 @@ CHANNEL_LAYERS = {
},
}
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine',
'URL': 'http://elasticsearch:9200/',
'INDEX_NAME': os.getenv('HAYSTACK_INDEX_NAME', 'inscription-tfjm'),
}
}
HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor'