z / app /admin /template_loader.py
bg5's picture
Upload 85 files
712a3c7 verified
Raw History Blame Contribute Delete
209 Bytes
from pathlib import Path
from fastapi.templating import Jinja2Templates
TEMPLATES_DIR = Path(__file__).resolve().parent.parent / "templates"
templates = Jinja2Templates(directory=str(TEMPLATES_DIR))