I have a view that has the @login_required decorator and upon pulling up the page, if you are not logged in it does send you to the login form with the proper ?next=/url/you/tried/to/see
My problem is how to I pass along that ?next value to the subsequent forms and activation email so that when the user completes the activation process they are redirected to the view they originally tried to get to.
My Python'foo and Django'foo is weak, so please keep the answer to something a 5 year old could follow ;)
Thanks all in advanced.
Built in view handles this by default. Make sure you have this piece of code: <input type="hidden" name="next" value="{{ next }}" />
in your template of login page.
You can do this <a href="{% url 'app:sign_up' %}?next={{ next }}">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With