title: Django: create HTML input array using a django form
body: <p>I am trying to automate the creation of something like this:</p>
  
  <pre><code>&lt;input type='text' name='asdf[]' /&gt;
  &lt;input type='text' name='asdf[]' /&gt;
  &lt;input type='text' name='asdf[]' /&gt;
  </code></pre>
  
  <p>By cycling through a range in the form. I've been trying things like this, along with several other variations:</p>
  
  <pre><code># in a model class
  for i in range(1, prim+1):
      self.fields['asdf'] = forms.CharField(label=i)
  
  # in the template
  &lt;form action='#' method='post'&gt;
      {{form.as_p}}
  &lt;/form&gt;
  </code></pre>
  
  <p>But I haven't had any luck though.</p>
  
  <p>How can I go about automating an array of inputs?</p>
  
  <p>** edit **
  To clarify, eventually I need to be able to access the fields in the template like this:</p>
  
  <pre><code>{% for input in form.fields.asdf %}
  {{input}}
  {% endfor %}
  </code></pre>
  
  <p>Which would then hopefully get me the original input list shown above...</p>