[c330f8]: / src / config.py

Download this file

14 lines (10 with data), 365 Bytes

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