adiciona views, templates, urls e documentos do elastic search
This commit is contained in:
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user