1👍
I think the page parameter should be in the request.path, so try appending this to the submit action in the template:
?next={{request.path}}
and make sure you have request as a template context processor in your settings.py file.
(See https://stackoverflow.com/a/1711592/837845 for details)
0👍
So to everyone struggling with redirecting to paginated page what i did was first for view of main page i store this page’s pagination in session:
request.session['previous_page'] = request.path_info + "?page=" + request.GET.get("page", '1')
Now in view that receives POST request from form return HttpResponseRedirect:
return HttpResponseRedirect(request.session['previous_page'])
- [Answer]-Django url pattern not registering
- [Answer]-Call a helper function and create a progress bar on django
- [Answer]-Deploying Django project with FTP
- [Answer]-How can I reuse django form for searching?
- [Answer]-Error in Heroku run python manage.py syncdb
Source:stackexchange.com