title: Django 1.11 CreateView adding datepicker for datefields
body: <p>So I am trying to change my form's model Datefield output to the Datepicker similar to <a href="https://stackoverflow.com/questions/21405895/datepickerwidget-in-createview">DatepickerWidget in CreateView</a></p>
  
  <p>The forms are generated using a html template:</p>
  
  <pre><code>{% for field in form %}
      &lt;div class="form-group"&gt;
          &lt;div class="col-sm-offset-2 col-sm-10"&gt;
              &lt;span class="text-danger small"&gt;{{ field.error }}&lt;/span&gt;
          &lt;/div&gt;
          &lt;label class="control-label col-sm-2"&gt;{{field.label_tag}}&lt;/label&gt;
          &lt;div class="col-sm-10"&gt;{{field}}&lt;/div&gt;
      &lt;/div&gt;
  {% endfor %}
  </code></pre>
  
  <p>Here is the Views with what I tried:</p>
  
  <pre><code>class newenv_form(generic.CreateView):
      model = Environment
      fields =['name', 'description', 'creation_date', 'status','status_update_date']
      template_name = 'catalogue/new_env.html'
  
      #Does not work
      def get_form(self, form):
          form = super(newenv_form, self)
          form.fields['creation_date','status_update_date'].widget = forms.DateInput(attrs={'class':'datepicker'})
          return form
  </code></pre>