From a0c3d104c932d1c8a8587f346695a5d47e2942c3 Mon Sep 17 00:00:00 2001 From: tmeftah Date: Wed, 28 Aug 2024 07:48:50 +0200 Subject: [PATCH] =?UTF-8?q?feat=20=E2=9C=A8:=20Implement=20environment=20v?= =?UTF-8?q?ariable=20loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - The code implements environment variables loading for the application, then sets up a context manager. --- backend/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/main.py b/backend/main.py index a80739e..3e54ce9 100644 --- a/backend/main.py +++ b/backend/main.py @@ -14,6 +14,10 @@ from backend.db.sessions import get_db from backend.db.utils import populate_admin_user +from dotenv import load_dotenv + +load_dotenv() + @asynccontextmanager async def lifespan(app: FastAPI):