ajal-template-fastapi/template/{% include 'project-name.jinja' %}/settings.py
2025-04-29 18:32:48 -04:00

22 lines
465 B
Python

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'