I want to get the number of the next page. For this there is a page.next_page_number() . In view everything works, but not in the template . Although the documentation is all done as well . In my HTML code, nothing is displayed in place {{ page.next_page_number }} .

  • Give an example of your non-working code - lexxl

1 answer 1

If you use generic views, then most likely the object name in the template is not page , but page_obj