Why second user login redirects me to /accounts/profile/ url?
Posted
by
drupality
on Stack Overflow
See other posts from Stack Overflow
or by drupality
Published on 2012-11-01T22:48:49Z
Indexed on
2012/11/01
23:00 UTC
Read the original article
Hit count: 279
django
|django-authentication
I am using Django built in view for user login:
url(r'^user/login/$', 'django.contrib.auth.views.login', {'template_name': 'users/templates/login.html'}, name='user-login'),
After login when I goto user/login again I can login second time. I submit the form and getting:
The current URL, accounts/profile/, didn't match any of these.
I haven't declare this url in urls.py.
What I am doing wrong? Why framework want to redirect to this url?
© Stack Overflow or respective owner