Update settings.py to use the .env file

parent 53c82b01
......@@ -12,6 +12,10 @@ https://docs.djangoproject.com/en/4.1/ref/settings/
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment