A
A
Alex8899112021-08-26 06:51:45
Django
Alex889911, 2021-08-26 06:51:45

How to make adjustable pagination in django?

Good afternoon, this is my first project, I am writing an application in Django (Python) like a news feed. I made a pagination of news (via Paginator) and now I need the user to be able to choose how many news can be on one page (10, 20, 50). Tell me how to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alternativshik, 2021-08-26
@alternativshik

store somewhere with the user the amount selected, and then use this value in the paginator.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question