title: DateTime field in Django form model
body: <p>When using <code>DateTimeField</code> in <code>ModelForm</code>s, they look like text fields. How can I make them look like in the admin?  (When I go to the admin and add a show I see the fields as date fields)</p>
  
  <pre><code># models.py
  class Show(models.Model):
      ...
      start_time = models.DateTimeField("Event Time")
      sale_end_time = models.DateTimeField("Sale End Time")
  
  class ShowForm(ModelForm):
  
      class Meta:
          model = Show 
  
  # views.py
  def createshow(request):
      if request.method == 'POST':
          form = ShowForm(request.POST)
          if form.is_valid():
              form.save()
              return HttpResponseRedirect('/showsaved')
      else:
          form = ShowForm()
          return render(request, 'BizCreateShow.html', {'ShowForm' : form})
  </code></pre>
  
  <p>In the template:</p>
  
  <pre><code>&lt;form class="form-horizontal well" action="" method="post"&gt;
   {% csrf_token %}
      {{ ShowForm }} &lt;/br&gt;
      &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt;
  </code></pre>