id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 13736,possible example code error,ikiini,nobody,"{{{ def contact(request): if request.method == 'POST': # If the form has been submitted... form = ContactForm(request.POST) # 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 else: form = ContactForm() # An unbound form return render_to_response('contact.html', { 'form': form, }) }}} Notice that the render_to_response uses the form variable that may not have been initialized. this is located at: http://docs.djangoproject.com/en/1.2/topics/forms/#topics-forms-index",,closed,Documentation,1.2,,invalid,,,Unreviewed,0,0,0,0,0,0