From d2ce4a1f938c1426d9609d808f323fe3e7c93336 Mon Sep 17 00:00:00 2001 From: Jean Lionel Ndabaga <78383037+Lionel-hub1@users.noreply.github.com> Date: Fri, 8 Mar 2024 17:21:56 +0200 Subject: [PATCH] Add dotenv configuration --- buffer_clone_backend/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buffer_clone_backend/settings.py b/buffer_clone_backend/settings.py index 9c5ddc4..2fb6ed0 100644 --- a/buffer_clone_backend/settings.py +++ b/buffer_clone_backend/settings.py @@ -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