How do I redirect an user back to the page they were trying to access once they log in? (Django)
You can pass a url parameter back to your login page and use that to direct the user once they complete the login successfully.
So currently I'm using @login_required to block certain pages from users and redirect them, telling them they need to log in. but what I can't understand is how do I "let them" go to the page they were trying to go to once they log in. Currently I'm just using a typical render_to_response('with a certain view') but what if i want that response to be anywhere where they were trying to access. How do i code that?