Add dotenv configuration
This commit is contained in:
parent
1cf914ec52
commit
d2ce4a1f93
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,9 @@ https://docs.djangoproject.com/en/5.0/ref/settings/
|
|||
|
||||
from pathlib import Path
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
|
|
Loading…
Reference in a new issue