views:

32

answers:

1

Hello,

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 and file that is including the list.html. Why is that?

+2  A: 

You are most probably only rendering list.html in your view, check for that.

stefanw