开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜