title: django: how do i make tables out of two for loops?
body: <p>I have two columns (models), <code>ColumnLeft</code> and <code>ColumnRight</code>. To loop through the models to output the rows in a table I have used the <code>for</code> loop. I want to put both Columns in the same table.</p>
  
  <pre><code>|--------------------------|
  |ColumnLeft  |  ColumnRight|
  |--------------------------|
  |1           |a            |
  |2           |b            |
  |3           |c            |
  |--------------------------|
  </code></pre>
  
  <p>The html for the table I have made is this.</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;
          &lt;th&gt;ColumnLeft&lt;/th&gt;
          &lt;th&gt;ColumnRight&lt;/th&gt;
      &lt;/tr&gt;
      {% for i in left %} 
      &lt;tr&gt;
      {% for f in right %}  
          &lt;td&gt;{{i}}&lt;/td&gt;
          &lt;td&gt;{{f}}&lt;/td&gt;
      {% endfor %}
      &lt;/tr&gt;
      {% endfor %}
  &lt;/table&gt;
  </code></pre>
  
  <p>This out puts the table like this:</p>
  
  <pre><code>|--------------------------|--------------------------|--------------------------|
  |ColumnLeft  |  ColumnRight|            |             |            |             |
  |--------------------------|--------------------------|--------------------------|
  |1           |a            |1           |b            |1           |c            |
  |2           |a            |2           |b            |2           |c            |
  |3           |a            |3           |b            |3           |c            |
  |--------------------------|--------------------------|--------------------------|
  </code></pre>
  
  <p>Whats the best why to output the table like in my first example</p>