{% extends "base.html" %} {# 关键修复: 添加 with context #} {% import "macros.html" as macros with context %} {% block content %}