from pathlib import Path from pydantic_settings import BaseSettings APP_PATH = Path(__file__).parent.absolute() class MainSettings(BaseSettings): debug: bool = False verbosity: int = 1 app_name = "Ajal Template - FastAPI" base_path: Path = APP_PATH.parent.absolute() app_path: Path = APP_PATH templates_dir: str = 'templates' static_dir: str = 'static' class Config: env_prefix = 'fastapi_' env_file = '.env'