title: Django: templates and iterate over dict
body: <p>I have a dict:</p>
  
  <pre><code> &gt;&gt;&gt; some_dict
  {1: ['String1', 'String2', 'String3','String4' ],
   2: ['String1_2', 'String2_2', 'String3_2', 'String4_2' ],}
  </code></pre>
  
  <p>In my template i want to iterate over this dict and display values in html. So i sent this dict from view:</p>
  
  <pre><code>return render_to_response('tournament.html', 
          {.....
          'some_dict' : some_dict,
          'some_dict_range' : range(4),
               .....
          })
  </code></pre>
  
  <p>In tournament.html i trying to iterate over some_dict. I want to get output that should looks like:</p>
  
  <pre><code>'String1', 'String2', 'String3','String4'
  
   {% for iter1 in some_dict_range%}         
  {{some_dict.0.iter1}}&lt;br&gt;{% endfor %}
  </code></pre>
  
  <p>And as result, i get nothing.
  But when i trying to get same result without iterator:
   some_dict.0.0, some_dict.0.1, etc. i get what i need ('String1', 'String2', 'String3','String4').
  And when i trying to view values of "iter1" i get the right digits:</p>
  
  <pre><code> {% for iter1 in some_dict_range%}         
  {{iter1}}&lt;br&gt;  {% endfor %}
  </code></pre>
  
  <p>0, 1, 2 ...
  Why this doesn't work this way? And if i wrong in design of this, how it should looks like? I mean - what the right way to iterate over this dict and display values in html-template?</p>