Friday, April 26, 2013

python - Django - CSRF verification failed - Stack Overflow

python - Django - CSRF verification failed - Stack Overflow: "1. include {% csrf_token %} inside the form tag in the template.

2. use a RequestContext in render_to_response

return render_to_response('contact.html', {'form': form},
context_instance=RequestContext(request))"

'via Blog this'