添加缺省配置
This commit is contained in:
13
config.py
Normal file
13
config.py
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
"""
|
||||||
|
Dynaconf 配置入口。
|
||||||
|
配置项可从 settings.toml、.secrets.toml 及环境变量(前缀 BINANCE_POSITION_)加载。
|
||||||
|
"""
|
||||||
|
|
||||||
|
from dynaconf import Dynaconf
|
||||||
|
|
||||||
|
settings = Dynaconf(
|
||||||
|
envvar_prefix="BINANCE_POSITION",
|
||||||
|
settings_files=["settings.toml", ".secrets.toml"],
|
||||||
|
load_dotenv=True,
|
||||||
|
merge_enabled=True,
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user