add dotenv

This commit is contained in:
2025-03-04 21:06:55 +08:00
parent 0ad0a079b4
commit 8c849f132d
4 changed files with 16 additions and 0 deletions

View File

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