fix: load .env via python-dotenv; SQLite default for local dev
This commit is contained in:
parent
b140c55cda
commit
8d4f9d1fc6
5 changed files with 20 additions and 0 deletions
|
|
@ -1,5 +1,9 @@
|
|||
from contextlib import asynccontextmanager
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv() # load .env before db.py reads DATABASE_URL
|
||||
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue