If you have dynamically changing lists of objects or their count is greater than 30 or so, you will likely need pagination in order to provide a good user experience. Instead of the full QuerySet, pagination provides a specific number of items in the dataset that corresponds to the appropriate size for one page. We also display links to allow users to access the other pages making up the complete set of data. Django has classes to manage paginated data, and we will see how to use them in this recipe.
Managing paginated lists
Getting ready
Let's start with the forms and views of the movies app from the Filtering object lists recipe.