Django extends/include - bug?
I'm trying to use both extends and include tags in one template, just like:
{% extends "layout.html" %}
{% block content %}
<div id="content">
<nav class="mainMenu">
{% include "list.html" %}
</nav>
</div>
{% endblock %}
Unfortunately what is displayed is only list.html without contents from layout.html an开发者_如何学God file that is including the list.html. Why is that?
You are most probably only rendering list.html in your view, check for that.
精彩评论