make mongo uri universal across flask apps
This commit is contained in:
parent
605c25b8b0
commit
3c9618f0b4
3 changed files with 9 additions and 0 deletions
5
_config.py
Normal file
5
_config.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import tomllib
|
||||
from pathlib import Path
|
||||
|
||||
_cfg = tomllib.loads((Path(__file__).parent / "config.toml").read_text())
|
||||
MONGO_URI = _cfg["mongo"]["uri"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue