Fixes: 1) Replace os.getenv with getenv in Elasticsearch settings to avoid import errors;
Extra: 1) Add `noqa: F405` comment to suppress linter warning for `getenv`.
This commit is contained in:
parent
db1a357ccb
commit
ac7c71c4a1
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ from evibes.settings.base import * # noqa: F403
|
||||||
ELASTICSEARCH_DSL = {
|
ELASTICSEARCH_DSL = {
|
||||||
"default": {
|
"default": {
|
||||||
"hosts": ["http://elasticsearch:9200"],
|
"hosts": ["http://elasticsearch:9200"],
|
||||||
"http_auth": ("elastic", os.getenv("ELASTIC_PASSWORD")),
|
"http_auth": ("elastic", getenv("ELASTIC_PASSWORD")), # noqa: F405
|
||||||
"verify_certs": False,
|
"verify_certs": False,
|
||||||
"timeout": 30,
|
"timeout": 30,
|
||||||
"ssl_show_warn": False,
|
"ssl_show_warn": False,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue