a b/src/config.py
1
import os
2
from dynaconf import Dynaconf
3
4
current_directory = os.path.dirname(os.path.realpath(__file__))
5
6
settings = Dynaconf(
7
    root_path=current_directory,
8
    envvar_prefix="DYNACONF",
9
    settings_files=['settings.py', '.secrets.toml'],
10
)
11
12
# `envvar_prefix` = export envvars with `export DYNACONF_FOO=bar`.
13
# `settings_files` = Load these files in the order.