title: How to access a dictionary element in a Django template?
body: <p>I would like to print out the number of votes that each choice got. I have this code in a template: </p>
  
  <pre><code>{% for choice in choices %}
      {{choice.choice}} - {{votes[choice.id]}} &lt;br /&gt;
  {% endfor %}
  </code></pre>
  
  <p><code>votes</code> is just a dictionary while <code>choices</code> is a model object.</p>
  
  <p>It raises an exception with this message:</p>
  
  <pre class="lang-none prettyprint-override"><code>"Could not parse the remainder"
  </code></pre>