title: Django templates and variable attributes
body: <p>I'm using Google App Engine and Django templates.<br>
  I have a table that I want to display the objects look something like:<br></p>
  
  <pre><code>Object Result:
      Items = [item1,item2]
      Users = [{name='username',item1=3,item2=4},..]
  </code></pre>
  
  <p>The Django template is:</p>
  
  <pre><code>&lt;table&gt;
  &lt;tr align="center"&gt;
      &lt;th&gt;user&lt;/th&gt;
      {% for item in result.items %}
          &lt;th&gt;{{item}}&lt;/th&gt;
      {% endfor %}
  &lt;/tr&gt;
  
  {% for user in result.users %}
      &lt;tr align="center"&gt; 
          &lt;td&gt;{{user.name}}&lt;/td&gt;
          {% for item in result.items %}
              &lt;td&gt;{{ user.item }}&lt;/td&gt;
          {% endfor %}
      &lt;/tr&gt;
  {% endfor %}
  &lt;/table&gt;
  </code></pre>
  
  <p>Now the <a href="http://www.djangoproject.com/documentation/0.96/templates/#variables" rel="noreferrer">Django documention</a> states that when it sees a <strong>.</strong> in variables<br>
  It tries several things to get the data, one of which is dictionary lookup which is exactly what I want but doesn't seem to happen...</p>