We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I love dynaconf. It doesn't support multiple dotenv. I think it should support multiple dotenv.
for example;
settings = Dynaconf( dotnev_path=[str(BASE_DIR / "envs")], settings_files=[".env", ".secret.env"], )
The text was updated successfully, but these errors were encountered:
I think it is a good idea to add a .env loader to handle .env extension files.
.env
The workaround for it is
from dynaconf import Dynaconf from dynaconf.utils.parse_conf import parse_conf_data from dynaconf.vendor.dotenv import dotenv_values envvar_prefix = "MYAPP" settings = Dynaconf(envvar_prefix=envvar_prefix) data = { k[len(envvar_prefix):]: parse_conf_data(v, tomlfy=True, box_settings=settings) for k, v in dotenv_values(".secret.env").items() if k.startswith(envvar_prefix) } settings.update(data)
Sorry, something went wrong.
Thank you @rochacbruno. It looks good, i will try. And maybe i can open pr about it.
No branches or pull requests
I love dynaconf. It doesn't support multiple dotenv. I think it should support multiple dotenv.
for example;
The text was updated successfully, but these errors were encountered: