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"
|
||||
|
||||
@ -14,7 +14,7 @@ SECRET_KEY = env(
|
||||
default="tYdYl0MP5zgpMlMmjBuYHvH4Dp3JDN5q3sxWBdFejemZSr0qpI9IrvrvTm17F0aW",
|
||||
)
|
||||
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
|
||||
ALLOWED_HOSTS = ["localhost", "0.0.0.0", "127.0.0.1"] # noqa: S104
|
||||
ALLOWED_HOSTS = ["localhost", "0.0.0.0", "127.0.0.1", "109.199.98.226"] # noqa: S104
|
||||
|
||||
# CACHES
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user