django - Why second user login redirects me to /accounts/profile/ url? -


I am using Django created 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 login the user / login again, I can login a second time. I submit and receive forms:

The current URL, account / profiles / does not match any of these.

I have not declared this url in urls.py .

Am I doing wrong? Want to redirect the structure to this url?

django.contrib.auth.views.login Redirects to accounts / profiles / later.
You LOGIN_REDIRECT_URL to your settings.py file that you like ..

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -