title: Django URLField and HTML5?
body: <p>Is it possible to make django's (v1.2) URLField output an HTML5 <code>input</code> tag where <code>type="url"</code>?</p>
  
  <p>------------- SOLUTION -------------</p>
  
  <pre><code>from django.forms import ModelForm
  from django.forms import widgets
  from django.forms import fields
  from models import MyObj
  
  class URLInput(widgets.Input):
      input_type = 'url'
  
  class MyObjForm(ModelForm):
      url = fields.URLField(widget=URLInput())
  
      class Meta:
          model = MyObj
  </code></pre>