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
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 [
2 matches
Mail list logo