【发布时间】:2021-07-30 07:28:59
【问题描述】:
基础 HTML
{% load static %}
{% include "navigation/navigation.html" with cat=categories only %}
<!-- base template -->
{% block content %}
some html
{% endblock%}
模板 B
{% extends "base/index.html" %}
{% block content %}
<!-- product right -->
Some html
<!-- //product right -->
<!-- //product right -->
{% endblock %}
我的问题是当我渲染模板时它没有显示我传递给导航栏的上下文,即使单独访问基本模板时上下文显示正常,不知道问题出在哪里,
【问题讨论】:
标签: django django-views django-templates