[Fixed]-Django Paginator Limiting Iteration of all Objects

1đź‘Ť

âś…

send the “posts” list separately for all posts without applying paginator. Send the paginated ones in a separate list variable such as “paginated_posts”. That way you won’t be limited to the paginated posts on the right hand side.

The more optimal way I would think of doing this is send the same # of posts per page as the max number you want to show for your “recent posts”, assuming you are not trying to show ALL posts in your recent posts. If there is a happy medium for your most recent posts # to match the number of posts you want to paginate on – you are all set.

Leave a comment