fix
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user