title: Django template for loop - dependant on variable. 'int' object is not iterable
body: <p>I'd like to run a for loop within a Django template, where the range is dependant on the value of a variable.</p>
  
  <p>For the size of the name, add a space. The name is a string value.</p>
  
  <pre><code>{% for i in person.name|length %}                          
      &amp;nbsp;
   {% endfor %}
  </code></pre>
  
  <p>Running this code produces an  'int' object is not iterable Django Error.</p>
  
  <p>However, calling the following works, and will dispay the length of the name</p>
  
  <pre><code>{{ person.name|length }}
  </code></pre>
  
  <p>Thanks!</p>