I am using django registration redux for login and auth purposes. I want to do the following.
- if the user logs in for the first time i want to redirect to URL-"profile/create"
- if the user is a returning user i dont want the user to access the URL-"profile/create" and i want the user to be redirected to another URL.
django-registration-redux
seems to use Django's login-view for logging users in per default.
Thus I would provide a customized login view instead that additionally inspects the user that tries to log in and checks if last_login
is already filled out.
Depending on the result the user then can be redirected to the desired page once the authentication succeeded.