title: Printing the dictionary value out in Django template
body: <p>I am passing a two dictionaries called <code>student_ids</code> and <code>rows</code> to a Django template. The dictionary <code>student_ids</code> has a key called <code>student_id</code> and <code>invite_id</code> and I would like to print out the <code>student_ids[student_id]</code> to get the <code>invite_id</code>.</p>
  
  <p>The 4th element in row in rows dictionary is the same as <code>student_id</code>. When I try the code below, it doesn’t work…</p>
  
  <p>Django template: </p>
  
  <pre><code>{% for row in rows %}
      &lt;a href="#invite"
       data-invite="{{ invite_ids.row.4 }}"&gt;
       {{ row.2 }}
      &lt;/a&gt;
  {% endfor %}
  </code></pre>
  
  <p>What should I do to get the correct data out in the Django template? I essentially need <code>student.ids[row[4]]</code> to be printed out, and for it to be simple…</p>