title: Accessing individual form fields in Django template
body: <p>I want to access the individual element of the form...
  here is the code:</p>
  
  <p>Models.py</p>
  
  <pre><code>class GatewayDetails(models.Model):
      gateway_id = models.IntegerField(primary_key=True)
      gateway_name = models.CharField(max_length=256L)
      class Meta:
          db_table = 'gateway_details'
  
  class GatewayParameters(models.Model):
     gateway = models.ForeignKey(GatewayDetails)
     id=models.IntegerField(primary_key=True)
     gateway_param1 = models.CharField(max_length=256L)
     gateway_param2 = models.CharField(max_length=256L)
     gateway_param3 = models.CharField(max_length=256L)
     gateway_param4 = models.CharField(max_length=256L)
     gateway_param5 = models.CharField(max_length=256L)
     gateway_param6 = models.CharField(max_length=256L)
     gateway_param7 = models.CharField(max_length=256L)
     gateway_param8 = models.CharField(max_length=256L)
     gateway_param9 = models.CharField(max_length=256L)
     class Meta:
        db_table = 'gateway_parameters'
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>  if request.method=="POST":
          add_gateway_details_form=Add_Gateway_Details(request.POST)
          if add_gateway_form.is_valid():
          success=True          
          else:
          add_gateway_details_form=Add_Gateway_Details()
  else:
      add_gateway_details_form=Add_Gateway_Details()
      add_gateway_parameters_form=Add_Gateway_Parameters()
  </code></pre>
  
  <p>forms.py</p>
  
  <pre><code>class Add_Gateway_Details(forms.ModelForm):
  class Meta:
       model=GatewayDetails
      exclude=('gateway_id',)
  class Add_Gateway_Parameters(forms.ModelForm):
  class Meta:
      model=GatewayParameters
      exclude=('gateway',)
  </code></pre>
  
  <p>html:</p>
  
  <pre><code> &lt;form action="." method="POST"&gt;
              {{ add_gateway_details_form.as_p}}
              {{ add_gateway_parameters_form.as_p }}
  
              &lt;input type="submit" value="send"&gt;
   &lt;/form&gt;
  </code></pre>
  
  <p>I want to access individual elements of the form (eg: gateway_name,gateway_param1) not the whole form as in the case with add_gateway_details_form.as_p or add_gateway_parameters_form.as_p</p>
  
  <p>any help..</p>