Pagination For Django - Django Wednesdays #18

Описание к видео Pagination For Django - Django Wednesdays #18

In this video I'll show you how to use Pagination with Django and Python.

Pagination is pretty easy to use, I'll show you everything you need in this video.

We'll Paginate our Venue page to only show a certain number of venues per page, and then add some links to navigate to the next page of venues.


Pagination is useful whenever you have a long list of items in the database and you don't want to show them all on one giant webpage. So you break them apart into multiple pages with HTML navigation links between them all.


#django #codemy #JohnElder

Timecodes
0:00​​ - Introduction
1:26 - Import Pagination
3:13 - Set Up Pagination In View
6:03 - Explore Pagination On Webpage
8:52 - Add Next and Previous Pagination HTML
11:25 - Add Page 1 of 3 HTML
12:04 - Add Next and Last Pagination HTML
14:38 - How To Update Venue List On Page
16:53 - Intro To Bootstrap Pagination
17:23 - Change Number of Pages To Paginate
18:25 - Conclusion

Комментарии

Информация по комментариям в разработке