Files
ebook-extension/ebook_backend_admin_panel/admin-backend/utils/template_loader.py
richardtekula f78c2199e1 Fix: Rename directory to remove & character causing shell issues
Renamed ebook_backend&admin_panel to ebook_backend_admin_panel
  The & character was being interpreted by shell as background
  process operator, causing 'Dockerfile not found' errors in Coolify.
2025-11-11 17:06:39 +01:00

8 lines
270 B
Python

from fastapi.templating import Jinja2Templates
import os
BASE_DIR = os.path.dirname(__file__)
PARENT_DIR = os.path.abspath(os.path.join(BASE_DIR, "..", ".."))
TEMPLATE_DIR = os.path.join(PARENT_DIR, "admin-frontend")
templates = Jinja2Templates(directory=TEMPLATE_DIR)