new bot structure
This commit is contained in:
12
config/config.py
Normal file
12
config/config.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from dynaconf import Dynaconf
|
||||
|
||||
settings = Dynaconf(
|
||||
envvar_prefix=False,
|
||||
environments=True,
|
||||
env_switcher="ENV_FOR_DYNACONF",
|
||||
settings_files=["settings.toml"],
|
||||
load_dotenv=True
|
||||
)
|
||||
|
||||
# `envvar_prefix` = export envvars with `export DYNACONF_FOO=bar`.
|
||||
# `settings_files` = Load these files in the order.
|
||||
1
config/settings.toml
Normal file
1
config/settings.toml
Normal file
@@ -0,0 +1 @@
|
||||
[DEVELOPMENT]
|
||||
Reference in New Issue
Block a user