title: Django: dictionary to HTML table, when values are generators
body: <p>I have a dictionary containing scraped Airbnb listings data:</p>
  
  <pre><code>all_data = {
                      'name' : self.detail('listing', 'name'),
                      'city' : self.detail('listing', 'city'),
                      'id' : self.detail('listing', 'id'),
                      'latitude' : self.detail('listing', 'lat'),
                      'longitude' : self.detail('listing', 'lng'),
                      'picture' : self.detail('listing', 'picture_url'),
                      'pictures' : self.detail('listing', 'picture_urls'),
                      'price' : self.detail('pricing_quote', 'rate', 'amount'),
                      'currency' : self.detail('pricing_quote', 'rate', 'currency')
                      }
  </code></pre>
  
  <p>That I am passing from Django view to template like this:</p>
  
  <pre><code>context = {'all_data':all_data}
  return render(request, 'javascript/testjson.html', context)
  </code></pre>
  
  <p>The values in this dictionary are generators, yielding a specific listing detail. </p>
  
  <p>How do I present this data in a HTML table form in the template?</p>
  
  <p>So far I have the following for displaying the headers, but I don't know how to extract the data from generators into columns below those headers:</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;
          {% for key, value in all_data.items %}
              &lt;th&gt;{{key}}&lt;/th&gt;
          {% endfor %}
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>