title: How to add a datepicker to django forms
body: <p>Django doesn't support a datepicker for its forms, i didn't find any solution  that works for me.</p>
  
  <p>If anyone knows some simple solution for this, i'd be very thankful.</p>
  
  <p>Thanks.</p>
  
  <p>forms.py</p>
  
  <pre><code>    class meta:
          model = Student
          fields = ["classfk","name","birth_date"]
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>class CreateNewStudent(CreateView):
      fields = ("classfk","name", "birth_date")
      model = Student
      success_url = '/class/'
      template_name = "temp/newstudent.html"
  </code></pre>
  
  <p>newstudent.html</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;head&gt;
  
  &lt;/head&gt;
  
  &lt;form action="" method="post"&gt;
      {% csrf_token %}
      {{ form.as_p }}
      &lt;input type="submit"/&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>