Saturday, July 17, 2010

Re: CSRF verification failed - 403 error

Hi
I always had context_instance=RequestContext(request) in the
render_to_response function. Is there anything else I need to check?

Ravi


On Jul 16, 5:23 pm, Joel Klabo <joelkl...@gmail.com> wrote:
> I had this same problem. Try this for your return statements, if
> you're using render_to_response:
>
> return render_to_response("a_template.html", c,
> context_instance=RequestContext(request))
>
> The context_instance was the key in my case. You'll need to add it to
> all your views though.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate