title: Django Form Saving, but NOT Redirecting
body: <p>Basis: I am trying to display a forms information with a new unique url as well as view upon submission. The form is currently saving to the database, but not redirection to the new url or view. Below I've posted both the views.py as well as the urls.py. If you need to see anything else please let me know. </p>
  
  <p>Note: This is based off of a ModelForm and I am somewhat of a beginner to Django. </p>
  
  <p>Thanks in advance!</p>
  
  <p>url.py</p>
  
  <pre><code>from django.conf.urls import patterns, include, url
  
  # Uncomment the next two lines to enable the admin:
  from django.contrib import admin
  admin.autodiscover()
  
  urlpatterns = patterns('',
  url(r'^letter/testing/$', 'letter.views.letter'),
  url(r'^letter/testing/(?P&lt;pk&gt;\d+)/$','letter.views.submission'),
  
  # Uncomment the admin/doc line below to enable admin documentation:
  url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
  
  # Uncomment the next line to enable the admin:
  url(r'^admin/', include(admin.site.urls)),
  </code></pre>
  
  <p>)</p>
  
  <p>views.py</p>
  
  <pre><code># Create your views here.
  from django.http import HttpResponseRedirect
  from django.shortcuts import render_to_response, get_object_or_404
  from django.template import RequestContext
  from letter.forms import LetterForm
  from letter.models import Letter
  
  def submission(request, pk):
      submission = get_object_or_404(Letter, pk=int(pk))
      return render_to_response('post.html', {'submission':submission})
  
  def letter(request):
  if request.method == "POST":
      letter = LetterForm(request.POST)
  
      if letter.is_valid():
          try: 
              new_letter = letter.save()
              return HttpResponseRedirect('/letter/testing/%d/' % new_letter.pk)
          except:
              pass        
  
  else:
      letter = LetterForm()
  
  return render_to_response('letter.html',
          {'letter':letter},
          context_instance=RequestContext(request))
  </code></pre>
  
  <p>ANSWER:
  Needed to remove the try/except parameters under if letter.is_valid()</p>
  
  <p>Thank you @mattg!</p>