adiciona views, templates, urls e documentos do elastic search

This commit is contained in:
root
2025-03-07 07:10:13 +01:00
parent d3081f81f3
commit 1cd93f7955
19 changed files with 741 additions and 10 deletions

View File

@ -82,7 +82,8 @@ THIRD_PARTY_APPS = [
LOCAL_APPS = [
"diários_oficiais_alems.users",
# Your stuff: custom apps go here
"diarios",
'django_elasticsearch_dsl',
]
# https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS
@ -287,7 +288,8 @@ STATICFILES_FINDERS += ["compressor.finders.CompressorFinder"]
# Elastic Search
# ------------------------------------------------------------------------------
ELASTICSEARCH_DSL = {
'default': {
'hosts': env('ELASTICSEARCH_HOSTS', default='localhost:9200')
},
}
'default': {
'hosts': 'http://elasticsearch:9200' # same as above
},
}
ELASTICSEARCH_HOSTS="http://elasticsearch:9200"