title: Using Django time/date widgets in custom form
body: <p>How can I use the nifty JavaScript date and time widgets that the default admin uses with my custom view?</p>
  
  <p>I have looked through <a href="https://docs.djangoproject.com/en/dev/topics/forms/" rel="noreferrer">the Django forms documentation</a>, and it briefly mentions django.contrib.admin.widgets, but I don't know how to use it?</p>
  
  <p>Here is my template that I want it applied on.</p>
  
  <pre><code>&lt;form action="." method="POST"&gt;
      &lt;table&gt;
          {% for f in form %}
             &lt;tr&gt; &lt;td&gt; {{ f.name }}&lt;/td&gt; &lt;td&gt;{{ f }}&lt;/td&gt; &lt;/tr&gt;
          {% endfor %}
      &lt;/table&gt;
      &lt;input type="submit" name="submit" value="Add Product"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Also, I think it should be noted that I haven't really written a view up myself for this form, I am using a generic view. Here is the entry from the url.py:</p>
  
  <pre><code>(r'^admin/products/add/$', create_object, {'model': Product, 'post_save_redirect': ''}),
  </code></pre>
  
  <p>And I am relevantly new to the whole Django/MVC/MTV thing, so please go easy...</p>