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:
Egor Pavlovich Gorbunov 2025-06-22 01:01:47 +03:00
parent db1a357ccb
commit ac7c71c4a1

View file

@ -3,7 +3,7 @@ from evibes.settings.base import * # noqa: F403
ELASTICSEARCH_DSL = {
"default": {
"hosts": ["http://elasticsearch:9200"],
"http_auth": ("elastic", os.getenv("ELASTIC_PASSWORD")),
"http_auth": ("elastic", getenv("ELASTIC_PASSWORD")), # noqa: F405
"verify_certs": False,
"timeout": 30,
"ssl_show_warn": False,