Hi all,
I want to create a simple login form in django..Please
help I am a complete beginner
My Code:
{% csrf_token %}
username
password
login
Error Message (when I press login button) :
Forbidden (403)
CSRF verification failed. Request aborted.
Help
Reason given for failure:
Hi all,
I created a simple login form
My code:
{% csrf_token %}
username
password
login
In views.py i added
def login(request):
return render_to_response('login.html')
In urls.py i added
(r'^login/', include('macrohms.views.login')),
The Error when i press login button:
ImportError
. You'll want to replace that line with:
>
> url(r'^login/$', 'macrohms.views.login')),
>
> Note, I changed two additional things - I changed your tuple to a
> url() function call instead, and I added a $ at the end of the URL
> pattern (denotes the end of a string in
happened.
>
> Follow those instructions. Make sure you put {% csrf_token %} right
> after your open tag.
>
>
>
> On Sep 28, 11:38 pm, Saad Sharif wrote:
> > Thanks a lo :)
> >
> > but there is a new error
> >
> > The Error:
> >
> > Fo
Thanks Russell :)
Now, no error pops up but when i press the login button the same page
reloads..by the way, Django is awesome :)
--
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
5 matches
Mail list logo