This commit is contained in:
xds
2026-03-16 13:02:03 +03:00
parent 569c9b4b06
commit 4ca8ae3f7e
3 changed files with 6 additions and 24 deletions

View File

@@ -1,8 +1,12 @@
from pathlib import Path
from pydantic_settings import BaseSettings
_env_file = Path(__file__).resolve().parents[2] / ".env"
class Settings(BaseSettings):
model_config = {"env_file": ".env", "env_file_encoding": "utf-8"}
model_config = {"env_file": str(_env_file), "env_file_encoding": "utf-8"}
# Database
DATABASE_URL: str = "postgresql+asyncpg://velobrain:velobrain@localhost:5432/velobrain"