The quick answer is you have to put the following in your template
right after the <form ... > declaration:

 {% csrf_token %}

Cheers,
Nathan.


On Jun 25, 2:48 am, Li Hui <l...@garena.com> wrote:
> When I add enctype="text/plain" to a post form like <form action="/
> auth"
> method="post" enctype="text/plain">, there is a "CSRF verification
> failed." error.
> But when I remove it, all is right.
> Who can tell me why?

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

Reply via email to