title: Django - Class Based Generic View - "No URL to redirect to"
body: <p>I'm using the generic CreateView like:</p>
  
  <pre><code>#urls.py
  
  from django.conf.urls.defaults import *
  from django.views.generic import CreateView
  from content.models import myModel
  
  urlpatterns = patterns('myApp.views',
      (r'myCreate/$', CreateView.as_view(model=myModel)),
  )
  </code></pre>
  
  <p>With a mymodel_form.html template like:</p>
  
  <pre><code>&lt;form method="post" action=""&gt;
  {% csrf_token %}
    {{ form.as_p }}
    &lt;input type="submit" value="Submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>When I submit my form, the new object is created but I get the error</p>
  
  <blockquote>
    <p>ImproperlyConfigured at ...</p>
    
    <p>No URL to
    redirect to.  Either provide a url or
    define a get_absolute_url method on
    the Model.</p>
  </blockquote>
  
  <p>How can I specify the url to redirect on success ?</p>