[Fixed]-Django force user to fill out form on login

0👍

The middleware is the way to go for this problem, it’s the only method that’s truly reliable and configurable.

👤Wolph

1👍

Another option is to change LOGIN_REDIRECT_URL to a view that does the check and redirects if required. However, users can then navigate away from the form by typing in another url.

If you absolutely require users to fill out the form, then using middleware is the way to do it.

Leave a comment