In this section of the Django documentation, it says that passing in redirect_field_name via the url conf, as in
url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'redirect_field_name': '/albums/all/'}),")
should override the next value, which is where it goes after a successful login (it's stated between the two green boxes).
Mine keeps going to the default (settings.LOGIN_URL, which is "/accounts/profile/", and I don't understand why.
Printing next in the login template results in the empty string: <P>next={{ next }}</P>
Temporarily giving up on this, I eliminated the {'redirect_field_name', ... from that line in urls.py, and instead changed LOGIN_URL in settings.py to /albums/all/. I restarted the server, yet it's still going to /accounts/login.
I see this question, but there's no reference to urls.py: Django- why inbuilt auth login function not passing info about user to after successful login url
What am I missing?