2025-04-07 09:02:54 +02:00
|
|
|
import os
|
|
|
|
from pydantic_settings import BaseSettings
|
|
|
|
from dotenv import load_dotenv
|
|
|
|
|
|
|
|
load_dotenv()
|
|
|
|
|
|
|
|
class Settings(BaseSettings):
|
2025-04-07 09:18:31 +02:00
|
|
|
DATABASE_URL: str = "sqlite:///./default.db"
|
2025-04-07 09:02:54 +02:00
|
|
|
|
|
|
|
class Config:
|
|
|
|
env_file = ".env"
|
|
|
|
env_file_encoding = 'utf-8'
|
|
|
|
|
|
|
|
|
|
|
|
settings = Settings()
|