12 lines
330 B
Python
12 lines
330 B
Python
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
app_name: str = "Task API"
|
|
database_url: str = "postgresql+psycopg2://tasks:tasks@localhost:5432/tasks"
|
|
log_level: str = "INFO"
|
|
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
|
|
|
|
|
settings = Settings()
|