title: Output Django Model as Table
body: <p>I have a view definition that (attempts to) outputs a model as a table. This is what I have so far:</p>
  
  <pre><code>def output_table(request):
      output = My_Model()
      return render_to_response('outputtable.html', {'output': output})
  </code></pre>
  
  <p>Here's the HTML for outputtable.html:</p>
  
  <pre><code>&lt;html&gt;
  &lt;table&gt;
      {{ output.as_table }}
  &lt;/table&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What am I doing wrong? It doesn't work. Now, it's passing the model correctly, because if I change <code>My_Model()</code> to <code>My_Model.objects.all()</code> and then output it as simply <code>{{ output }}</code> then it shows me what I would see in the Django shell.</p>