优化代码

This commit is contained in:
yhydev@outlook.com
2025-06-15 02:46:36 +00:00
parent 75a80698fb
commit de7b98f44b
4 changed files with 87 additions and 69 deletions

10
config.py Normal file
View File

@@ -0,0 +1,10 @@
from dynaconf import Dynaconf
settings = Dynaconf(
envvar_prefix="DYNACONF",
settings_files=['settings.toml', '.secrets.toml'],
)
# `envvar_prefix` = export envvars with `export DYNACONF_FOO=bar`.
# `settings_files` = Load these files in the order.