This commit is contained in:
Oliver Hofmann 2026-04-27 08:34:00 +02:00
parent 4fbcb99743
commit e770d17b5c
2 changed files with 16 additions and 0 deletions

0
app/core/__init__.py Normal file
View File

16
app/core/config.py Normal file
View File

@ -0,0 +1,16 @@
from functools import lru_cache
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8")
APP_ENV: str = "development"
APP_PREFIX: str = ""
DATABASE_URL: str = "sqlite:///./app.db"
@lru_cache
def get_settings() -> Settings:
return Settings()