title: Reset Django Form
body: <p>I would like to know How it's possible to clear (Reset) a Form when you are completing it ?</p>
  
  <p>I can submit the Form to my MySQL Database and I thought that Reset process was the same, but apparently no. I just wan to add I'm really stuck with Django, I'm learning lots of tutorial per days too.</p>
  
  <pre><code>&lt;!--DOCTYPE html --&gt;
  &lt;html&gt;
  
  &lt;body&gt;
  
  &lt;h1 align="center"&gt; Formulaire d'acte de naissance &lt;/h1&gt;
  
  &lt;form method='POST' action=''&gt; {% csrf_token %}
  
  &lt;h3&gt; Partie contenant les informations de l'enfant&lt;/h3&gt;
  {{ Cform.as_ul}} &lt;!-- Display child part formulary --&gt;
  {{ value|date:"%d/%m/%Y" }}
  {{ value|time:"H:M" }}
  
  &lt;h3&gt; Partie contenant les informations des parents &lt;/h3&gt;
  {{ Pform.as_ul }} &lt;!-- Display parent part formulary --&gt;
  {{ value|date:"%d/%m/%Y" }}
  
  &lt;br&gt;&lt;/br&gt;
  
  &lt;input type ="submit" value="Valider le formulaire" /&gt;
  &lt;input type ="reset" value="Reset" /&gt;
  
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is my views.py file :</p>
  
  <pre><code>#-*- coding: utf-8 -*-
  
  from django.shortcuts import render
  from django.http import HttpResponseRedirect, HttpResponse
  from django.template import loader
  from .models import Child, Parent
  from .forms import ChildForm, ParentForm
  
  # Create your views here.
  
  def BirthCertificateAccueil(request) :
      # Fonction permettant de créer la page d'accueil de la rubrique Acte de Naissance 
  
      #Cherche le fichier html accueil et le renvois
      template = loader.get_template('accueil.html') 
      return HttpResponse(template.render(request))
  
  def Formulary(request) :
      # Fonction permettant de créer le formulaire Acte de Naissance et le remplissage
  
          Cform = ChildForm(request.POST or None) 
          Pform = ParentForm(request.POST or None)
  
          if Cform.is_valid() and Pform.is_valid() :   # Vérification sur la validité des données
              Cform.save()
              Pform.save()
  
          context = {
              "Cform" : Cform,
              "Pform" : Pform,
             }
  
          return render(request, 'birthform.html', context)
  </code></pre>
  
  <p>This is my urls.py :</p>
  
  <pre><code>from django.conf.urls import url
  from . import views
  
  urlpatterns = [
      url(r'^accueil$', views.BirthCertificateAccueil),
      url(r'^formulaire$', views.Formulary),
  ]
  </code></pre>
  
  <p>It's a completely false method or I missed something ?</p>
  
  <p>Thank you ;)</p>
  
  <p>PS : There is a part on Stack where I can improve my project/scripts with developers ? Because I'm alone to make this project, and as beginner, it's very hard :/</p>
  
  <p><a href="https://i.stack.imgur.com/Tbede.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tbede.png" alt="My localhost BirthCertificate page"></a></p>