Re: Request Context problem
On 19-02-12 14:16, dummyman dummyman wrote:
> I am getting the following eror on posting the form
>
> CSRF verification failed. Request aborted.
>
> Reason given for failure:
> CSRF token missing or incorrect.
It is already on the first go into your view that Django complains about
a missing CSRF token. It won't even hit your "else add csrf token" code.
The solution is simple: just add a {{ csrf_token }} somewhere in your
form. That ought to do it.
Reinout
--
Reinout van Rees http://reinout.vanrees.org/
reinout@vanrees.org http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"
--
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