Re: Return to the requested page after successfull @login_required by the next variable

2015-01-09 Thread Vijay Khemlani
Add the "next" variable as part of the form in a hidden field ... other fields... and then you can get it in the view that handles the login Also, you seem to have a form object, why don't you use "form.as_p" or something like that to render the form? On Fri, Jan 9, 2015 at 2:02 AM, Robin

Return to the requested page after successfull @login_required by the next variable

2015-01-08 Thread Robin Lery
Suppose this is the url after `@login_required(login_url='/accounts/required_login/')`: http://ngoksy.com/accounts/login_required/?next=/article/ view for the login_require: *def required_login(request):return render(request, 'required_login.html')* I tried adding 'next', like it [