We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3ff7cb commit cb937e2Copy full SHA for cb937e2
main.py
@@ -1,6 +1,7 @@
1
import logging
2
from typing import Optional
3
from contextlib import asynccontextmanager
4
+from dotenv import load_dotenv
5
from fastapi import FastAPI, Request, Depends, status
6
from fastapi.responses import RedirectResponse
7
from fastapi.staticfiles import StaticFiles
@@ -28,6 +29,7 @@
28
29
@asynccontextmanager
30
async def lifespan(app: FastAPI):
31
# Optional startup logic
32
+ load_dotenv()
33
set_up_db()
34
yield
35
# Optional shutdown logic
0 commit comments