title: How to change Django datetime field format in datepicker?
body: <p>I have a model field called <code>close_date</code></p>
  
  <p>models.py</p>
  
  <pre><code>class Project(models.Model):
      close_date = models.DateTimeField(blank=True, null=True)
  </code></pre>
  
  <p>In my forms, I don't do add any classes to display this because I will do it in my template using django-widget-tweaks. However, my forms look like this:</p>
  
  <p>forms.py</p>
  
  <pre><code>class NewProjectForm (ModelForm):
      class Meta:
          model = Project
          fields = ['close_date', ...]
  </code></pre>
  
  <p>templates</p>
  
  <pre><code>{% load widget_tweaks %}
      &lt;div class="form-group" id="close_date"&gt;
          &lt;label&gt;{{project_form.close_date.label}}&lt;/label&gt;
          &lt;div class="input-group date"&gt;
              &lt;span class="input-group-addon"&gt;&lt;i class="fa fa-calendar"&gt;&lt;/i&gt;&lt;/span&gt;
              {% render_field project_form.close_date class="form-control" type="text" %}
          &lt;/div&gt;
      &lt;/div&gt;
  
  &lt;script&gt;
          $('#close_date .input-group.date').datepicker({
              todayBtn: "linked",
              keyboardNavigation: false,
              forceParse: false,
              calendarWeeks: true,
              autoclose: true
          });
  &lt;/script&gt;
  </code></pre>
  
  <p>All this works fine, I can display the form, save it to the database and even display data to the user, but when I want to edit the this object and I populate the form from my views, I see this in the datepicker input field:</p>
  
  <pre><code>2018-02-28 00:00:00
  </code></pre>
  
  <p>How can I change what is displayed there from <code>2018-02-28 00:00:00</code> to <code>02/28/2018</code>?</p>
  
  <p>Is that on the django side of things or the JS side? </p>