1👍
✅
The problem was in fill_extendeduser
function. It raised an exception and, as mentioned by @omab:
Django auth process will eat the exceptions and redirect to the value of LOGIN_URL which by default is /accounts/login/. So, add a try/except block around your code to check if it’s raising any error.
Source:stackexchange.com