title: Django: DatePicker with "django-widget-tweaks"
body: <p>Good day,</p>
  
  <p>I'm trying "create" a DatePicker for one of my Inputfields in Django but it's not working!</p>
  
  <p>In my models.py:</p>
  
  <pre><code>class Customer(models.Model):
      ...
      name = models.CharField()
      date = models.DateField()
  </code></pre>
  
  <p>In my views.py:</p>
  
  <pre><code>def Page(request):
      CustomerFormSet = modelformset_factory(Customer, fields='__all__')
      formset = CustomerFormSet (queryset=Customer.objects.none())
      ...
      context = {'formset': formset}
      return render(request, 'app/base.html', context)
  </code></pre>
  
  <p>In my template:</p>
  
  <pre><code>{% extends 'app/base.html' %}
  {% load widget_tweaks %}
  
  &lt;form actions="" method="POST"&gt;
        {% csrf_token %}
        {{ formset.management_form }}
        {% for form in formset %}
            {{ form.id }}
  
          ...
          {% render_field form.name class="form-control" %}
          ...
          {% render_field form.date class="form-control" %}
          ...
  </code></pre>
  
  <p>Now my first Inputfield works fine! It returns a fitting Field in Bootstraps "Form-Group"-Layout. But my InputField for Dates remains a simple TextInput with no calendar apearing to choose from.</p>
  
  <p>My Question is: am I doing something wrong or is it still impossible to obtain such a function in this way?</p>
  
  <p>Thanks and a nice evening to all of you.</p>