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

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -