1👍
First off, with djangos generic views (ListView), pagination is literally one line to implement in a view and then the code for the template is given to you in the documentation (the bootstrap docs also have pagination example code snippets).
Your current loop is essentially the same as
for i in range(n):
print i
As n
increases, the more information will be printed to the screen and that leads to too much information for one person to take in. Even if they could take it all in, the majority of it they won’t care about and only need the first couple results.
Therefore, without pagination, you’d have just made your user wait additional time for your server to generate the content, and for their browser to display that content (even longer with images/media).
Humans don’t like waiting, don’t make them when they don’t need to.
0👍
Every post you add will have a certain weight, especially if it also has images or other media. Your users will have to load everything you have on the load of your page. This will make your page slow to load.
Slow loading pages have poorer performance because people give up on loading.
When the loading happens bit by bit as requested by the user it won’t have such impact.
- Rejecting some POSTs for some users
- How do i log in user using session based and basic auth in django rest framework?
- Django REST API connection issues
- Virtualenv isolated app somehow finds global django installation instead of local one
- Django Trouble Creating ManyToMany Field
0👍
While @Haroen Viaene is correct, that is only one side of the matter. Also a big collection of posts would be very hard to navigate through if a user wants to find a certain old post he’s read already for example. Also another way to go (without “load more” or pagination) is to use a search box and/or categories to separate your posts in.
- Createsuperuser django openshift v3
- __unicode__() method doesn't work well
- Get_queryset() in MonthArchiveView returns all objects instead objects created only in requested month
- Model Array in Django
- 'QueryDict' object has no attribute 'association'