title: Parsring through multiple arrays in django template
body: <p>I have a raw SQL output which contains a few arrays as well. I want to parse through these rows and iterate through the arrays in it.</p>
  
  <p>I have written the below code:</p>
  
  <pre><code>     {% for row in in results %}
                   &lt;li&gt;Title : {{row.4}}&lt;/li&gt;
                   &lt;li&gt;Description :{{ row.2}}&lt;/li&gt;
                   {% for i in row.3|length|range %}
                        &lt;li class="bs-callout"&gt;
                           &lt;button id="{{row.3.forloop.counter0}}"&gt;{{row.4.forloop.counter0}}&lt;/button&gt;
                           &lt;span&gt;{{row.5.forloop.counter0}}&lt;/span&gt;
                       &lt;/li&gt;
                    {% endfor%}
       {% endfor %}
  </code></pre>
  
  <p>Sample row : </p>
  
  <pre><code>['Col1','Col2',['txt1','txt2','txt3'],['txt1','txt2','txt3'],['txt1','txt2','txt3']]
  </code></pre>
  
  <p>In this case <code>row[5],row[6],row[7]</code> are arrays which contains 5-7 values.
  For each row i want to print the title in <code>row[4]</code> and list array items as well.</p>