Add dotenv configuration

This commit is contained in:
Jean Lionel Ndabaga 2024-03-08 17:21:56 +02:00
parent 1cf914ec52
commit d2ce4a1f93

View file

@ -12,6 +12,9 @@ https://docs.djangoproject.com/en/5.0/ref/settings/
from pathlib import Path from pathlib import Path
import os import os
from dotenv import load_dotenv
load_dotenv()
# Build paths inside the project like this: BASE_DIR / 'subdir'. # Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent BASE_DIR = Path(__file__).resolve().parent.parent