Pagination For Django - Django Wednesdays #18

Pagination For Django - Django Wednesdays #18

Codemy.com

3 года назад

40,755 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

KAY
KAY - 12.11.2023 02:59

awesome video, i really aprecciate it

Ответить
Roranautical
Roranautical - 02.11.2023 13:41

Your channel and all your knowledge is carrying me through my entire Django project, so thankful for all your videos!

Ответить
Odiljon Djamalov
Odiljon Djamalov - 21.08.2023 14:48

thank you

Ответить
احمد غلاب
احمد غلاب - 11.08.2023 23:36

شكرا Thanks

Ответить
Tyler Meyers
Tyler Meyers - 10.08.2023 22:39

Very helpful! I'm working on CS50w and this was a great help on our homework assignment. Thank you!

Ответить
Tamara P.
Tamara P. - 02.08.2023 14:52

Very well explained! I loved it. Saved me a whole bunch of time at work today.

Ответить
Angie Paola Moreno Jaramillo
Angie Paola Moreno Jaramillo - 03.04.2023 04:36

Thanks for your video! i was only making a code for the pagination but i didn't use the for to iterate the objects that i've gotten in the views thanks to the Paginator(...objects.all(), 2). But you explained too well everything.

Thank you so much

Ответить
Akif akif
Akif akif - 01.04.2023 23:28

Thank you for keeping it short and simple.

Ответить
Vinay Poul
Vinay Poul - 17.02.2023 08:41

Nice explaination.
Please make a explain video on class-based views in Django.

Ответить
Kartikey Srivastava
Kartikey Srivastava - 16.02.2023 08:06

watched three video before this but the way you clear the concept of pagination is just cool.

Ответить
Sthefano Carvalho
Sthefano Carvalho - 10.02.2023 02:43

Exactly what I needed. Thank you for the excellent content, as always :)

Ответить
Prateek Mehta
Prateek Mehta - 12.11.2022 00:31

+1 on we don't want order of things to change (randomly) as we paginate. The use of ? operator (in order_by) is useful but for pagination we need a sequential order of items, python sorting for e.g. has a key parameter to determine the lambda to be used for making comparison between any two items, so basically, what I mean is for any kind of sorting over a set of items, there needs to be a predefined algorithm that evaluates each item using the given key, in case of say a table of "artist_singing_concerts" this key could be the concert date, and we can sort each item based on the most recent concert date, because that is what a visitor to the website might want to attend.

Ответить
Suryo Adhy Chandra
Suryo Adhy Chandra - 08.11.2022 04:22

Thanks Sir!

Ответить
NULL
NULL - 17.10.2022 07:14

this was helpful, thanks!

Ответить
mike lexx 254
mike lexx 254 - 02.10.2022 13:28

how can i return an html page on button click sir?

Ответить
Arron
Arron - 20.09.2022 21:39

Legend, thank you!

Ответить
abd elrhman mohey
abd elrhman mohey - 20.09.2022 14:41

if i created any post or get request to filter my data is disappear as soon as i go to any other page

Ответить
João Nogaroli
João Nogaroli - 18.08.2022 17:46

Hi, this is work with flask? ex: have a flask.core.paginator ? i'm searching but nothing...

Ответить
Canis Latrans
Canis Latrans - 06.08.2022 03:01

Congratulations John! great video, very clear and you have fresh happy style, cool bro. do we need to bring always all the objects to use the paginator? does it has sense to use the paginator if I have only the objects that belong to a specific page? thanks in advance :)

Ответить
Matheus Andrade
Matheus Andrade - 01.08.2022 16:15

Amazing video

Ответить
Ameya Mahadev Gonal
Ameya Mahadev Gonal - 08.06.2022 22:47

That's perfect

Ответить
Moow Motors - Siz uchun eksklyuziv avtomobillar.
Moow Motors - Siz uchun eksklyuziv avtomobillar. - 07.06.2022 14:50

Thanks for lesson

Ответить
Hoxas
Hoxas - 05.06.2022 00:13

Nice 🤩 thank you

Ответить
kyrolls sabry
kyrolls sabry - 27.05.2022 17:51

Thanks so much ,this helped me a lot 🤩

Ответить
Philippe Mele
Philippe Mele - 11.05.2022 18:56

Hi there,

I am getting an errror message saying request is not defined.

Looking up on google, this problem seems to be related to Flask, however it does not seem flask is being used.

Any pointers?

Ответить
Arya Riski
Arya Riski - 01.05.2022 20:53

sir how the urls code for pagination?

Ответить
Dragonfire
Dragonfire - 03.04.2022 15:58

I tried this using POST method in a search form but it shows a value error ?

Ответить
Vignesh
Vignesh - 02.03.2022 12:56

hello sir, it was great .. can u pls make a video on relational models and querying objects in models

Ответить
Mr. Marvel
Mr. Marvel - 20.02.2022 20:33

What ever I am searching u pop out and answer my question...
Thank u a lot

Ответить
Farhad Tabrizi
Farhad Tabrizi - 19.12.2021 12:07

Hi
I have tried pagination on the blog page view you taught in django which is a class based view (the homepage of blog), while implementing pagination the first page is ok but on next pages it losses template formatting, for instance the contents get out of "container-fluid" div. Would you please help me on this? Thanks

Ответить
em0ji
em0ji - 09.12.2021 22:54

Thank you very much! With your help, I was able to understand and solve this problem!

Ответить
Yunas An
Yunas An - 11.11.2021 10:31

Help a lot! thank you!

Ответить
Ammon Jerro
Ammon Jerro - 06.11.2021 12:41

One of the best teacher in web!

Ответить
mohammad Aliakbari
mohammad Aliakbari - 26.09.2021 15:02

great!!!thanks

Ответить
VENKATESH T
VENKATESH T - 04.08.2021 13:54

thanks for the video finally i got the output

Ответить
Krebill
Krebill - 30.07.2021 02:38

love you

Ответить
Freeman Smith
Freeman Smith - 22.07.2021 06:08

Great video, super helpful

Ответить
John Giangrande
John Giangrande - 09.07.2021 07:18

Great job, as usual, John!

Ответить
Harshdeep Singh
Harshdeep Singh - 22.06.2021 10:16

please help i am getting nonetype for the page variable
Code:

p = Paginator(Post.objects.all(), 4)
page = request.GET.get('page')
trending_posts = p.get_page(page)
nums = "a" * trending_posts.paginator.num_pages

Ответить
Mirg'ani Mirqurbonov
Mirg'ani Mirqurbonov - 21.06.2021 12:08

Thanks

Ответить
Somesh H
Somesh H - 12.06.2021 02:09

Sir.. Waiting for django e-commerce website with class base views and adding items in cart using session..

Ответить
suman chakravarty
suman chakravarty - 11.06.2021 16:48

can you suggest a way to monitor daily traffic?

Ответить
Si Thu Htun
Si Thu Htun - 09.06.2021 17:07

This channel is the best for python!

Ответить
Prasad Mande
Prasad Mande - 09.06.2021 16:28

Sir please make video on how to do periodic task in django for sending E-mail

Ответить
Shriyansh Purohit
Shriyansh Purohit - 09.06.2021 16:09

Great Sir!! Wanted to learn Pagination in Django. Thanks!

Ответить