Just learned Django wrote a search view function, want to page the search content, now there is a problem, the search content submitted can be normal paging and display the first page, select the second page because the get content does not pass through the page will not show, ask which big God has a good solution this is my control part: Query section
{% if results.has_previous%} {# You need to pass the original condition here #} previous {% endif%} Page{{results.number}} of {{results.paginator.num_pages}} {% if Results.has_next %} Next {% endif%}
Some people on the internet said they need to put the query conditions in the previous &q={{}, but I do not know what to put in this, I hope that friends you can teach, thank you very much
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.