Configure admin title and deploy docs

This commit is contained in:
Your Name
2026-07-28 12:37:04 +05:00
parent bb2c58e02f
commit 3ab8a7b4f2
7 changed files with 68 additions and 88 deletions
+2 -2
View File
@@ -45,7 +45,7 @@ BASE_DIR = Path(__file__).resolve().parent
PROJECT_ROOT = BASE_DIR.parents[1]
FAVICON_PATH = PROJECT_ROOT / "favi.png"
templates = Jinja2Templates(directory=str(BASE_DIR / "templates"))
app = FastAPI(title="VK Parser Admin")
app = FastAPI(title=settings.display_admin_title)
LOCAL_TZ = ZoneInfo("Asia/Yekaterinburg")
MODEL_CACHE: dict[str, Any] = {"key": "", "at": 0.0, "models": []}
UPLOAD_ROOT = Path("uploads").resolve()
@@ -444,7 +444,7 @@ def require_csrf(user: dict, csrf_token: str) -> None:
def base_context(request: Request, user: dict | None, **extra: Any) -> dict[str, Any]:
ctx = {"request": request, "user": user, "app_env": settings.app_env}
ctx = {"request": request, "user": user, "app_env": settings.app_env, "app_title": settings.display_admin_title}
ctx.update(extra)
return ctx