mirror of
https://github.com/Balshgit/public.git
synced 2025-09-11 18:00:42 +03:00
12 lines
390 B
Python
12 lines
390 B
Python
from pathlib import Path
|
|
|
|
from decouple import AutoConfig
|
|
|
|
# Build paths inside the project like this: BASE_DIR.joinpath('some')
|
|
# `pathlib` is better than writing: dirname(dirname(dirname(__file__)))
|
|
BASE_DIR = Path.cwd().parent.parent.parent.parent
|
|
|
|
# Loading `.env` files
|
|
# See docs: https://gitlab.com/mkleehammer/autoconfig
|
|
config = AutoConfig(search_path=BASE_DIR.joinpath('config'))
|