Files
2024-06-03 11:23:45 +08:00

12 lines
284 B
Python

from dynaconf import Dynaconf
settings = Dynaconf(
envvar_prefix="GMHCONVERT",
settings_files=['settings.toml', '.secrets.toml'],
environments=True
)
# `envvar_prefix` = export envvars with `export DYNACONF_FOO=bar`.
# `settings_files` = Load these files in the order.