Put {% csrf_token %} in your form and please read
https://docs.djangoproject.com/en/1.3/ref/contrib/csrf/ to learn why.

For example
<form method="post" action="/user/register/">
{% csrf_token %}
{% for field in form %}
{% include "formfields.html" %}
{% endfor %}
<br />
<center>
<input type="submit" value="Gonder" />
</center>
</form>


2011/7/9 Harjot Gill <gillhr...@gmail.com>

> @ All
> i have created a login form in django.
> but after filling the username and password when click on submit, it
> shows the following error :
>
> Forbidden (403)
>
> CSRF verification failed. Request aborted.
>
> please help me.
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to