 def contact(request):      form = ContactForm(request.POST or None) # A form bound to the POST data      if form.is_valid(): # All validation rules pass         # Process the data in form.cleaned_data         # ...         return HttpResponseRedirect('/thanks/') # Redirect after POST       return render_to_response('contact.html', {         'form': form,      })