title: How do i add <input type="button"> as a formfield in django
body: <p>I want to have an input field as a button in my template. Just like <a href="https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_type_button" rel="nofollow noreferrer">this</a>.I am manually rendering form fields in my template.So, how do i create a field like that in my form. </p>
  
  <pre><code>Formfield in forms.py
  
  class DetailForm(forms.Form):
      owner=forms.CharField(widget=forms.TextInput(attrs={'class':'form-control'}))
  
  views.py 
  
  def getDetail(request):
     form=DetailForm()
     return render(request,'materials/addpage.html',{'form':form})
  </code></pre>
  
  <p>and template,</p>
  
  <pre><code>&lt;div class="form-group"&gt;
   {{form.owner}}
  &lt;/div&gt;
  </code></pre>