Use elasticsearch only in production
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
f1d2acdc25
commit
dc56396012
|
@ -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',
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -39,3 +39,11 @@ CHANNEL_LAYERS = {
|
|||
},
|
||||
},
|
||||
}
|
||||
|
||||
HAYSTACK_CONNECTIONS = {
|
||||
'default': {
|
||||
'ENGINE': 'haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine',
|
||||
'URL': 'http://elasticsearch:9200/',
|
||||
'INDEX_NAME': 'haystack',
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue