Python/Django newbie here.
I am using decorator
@login_required(login_url='/login/') to 3 different views. I have multiple such views(think services that website offer) which can be accessed only if you are logged in.
When I click on service button, the URL formed is something like this:
domain/login/?next=/<service_name>/ How do I use the
?next=<service_name> to redirect back to service that was originally called? Currently I am sent back to homepage, because that's what my Login view does.