Closed dvreed77 closed 11 years ago
Running Forms examples as instructed results in csrf errors.
Needed to include {% csrf_token %} in template and
return render_to_response('contact_form.html', {'form': form}, context_instance=RequestContext(request))
to views.py for this to work.
Thanks! Good point, with the latest Django, CSRF validation should come sooner in the book.
Running Forms examples as instructed results in csrf errors.
Needed to include {% csrf_token %} in template and
to views.py for this to work.