Initial FastAPI + SQLite + Alembic
This commit is contained in:
12
fastapi_demo/app/core/config.py
Normal file
12
fastapi_demo/app/core/config.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
APP_NAME: str = "FASTAPI_DEMO"
|
||||
ENV: str = "dev"
|
||||
DATABASE_URL: str = "sqlite:///./data/app.db"
|
||||
|
||||
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user