title: django templates are not rendering
body: <p>I am new to django. I am not able to render a template using two or multi level dictionary.Below are my view and template code.</p>
  
  <p>code from view.py</p>
  
  <pre><code>myList = {
      'ParentABC': {
          'ABC' : '#'
          }
      }
  return render_to_response('index.html', myList)
  </code></pre>
  
  <p>I have tried with two different templates but no luck:
  Template1-</p>
  
  <pre><code>&lt;ul class="collapsible collapsible-accordion"&gt;
          {% for eachCategory in myList %}
          &lt;li class="bold"&gt;&lt;a class="collapsible-header  waves-effect waves-teal"&gt;{{ eachCategory }}&lt;/a&gt;
                &lt;div class="collapsible-body" style=""&gt;
                  &lt;ul&gt;
                  {% for subCat in myList.eachCategory %}
                    &lt;li&gt;&lt;a href="#"&gt;{{ subCat  }}&lt;/a&gt;&lt;/li&gt;
                  {% endfor %}
                  &lt;/ul&gt;
                &lt;/div&gt;
          &lt;/li&gt;
          {% endfor %}
          &lt;/ul&gt;
  </code></pre>
  
  <p>template 2- </p>
  
  <pre><code>&lt;ul class="collapsible collapsible-accordion"&gt;
      {% for category,value  in myList.items %}
      &lt;li class="bold"&gt;&lt;a class="collapsible-header  waves-effect waves-teal"&gt;{{ category }}&lt;/a&gt;
            &lt;div class="collapsible-body" style=""&gt;
              &lt;ul&gt;
              {% for subcategory,value1 in value.items %}
                &lt;li&gt;&lt;a href="#"&gt;{{ subcategory }}&lt;/a&gt;&lt;/li&gt;
              {% endfor %}
              &lt;/ul&gt;
            &lt;/div&gt;
      &lt;/li&gt;
      {% endfor %}
      &lt;/ul&gt;
  </code></pre>
  
  <p>after rendering i am always getting below html:</p>
  
  <pre><code>&lt;ul class="collapsible collapsible-accordion"&gt;
  
          &lt;/ul&gt;
  </code></pre>
  
  <p>Please help me for the same.</p>