from django.shortcuts import render from .services import list_scenarios def index(request): # 首页只消费服务层给出的场景摘要,不自行拼装配置字段。 return render(request, "scenarios/index.html", {"scenarios": list_scenarios()})