Комментарии:
awesome video, i really aprecciate it
ОтветитьYour channel and all your knowledge is carrying me through my entire Django project, so thankful for all your videos!
Ответитьthank you
Ответитьشكرا Thanks
ОтветитьVery helpful! I'm working on CS50w and this was a great help on our homework assignment. Thank you!
ОтветитьVery well explained! I loved it. Saved me a whole bunch of time at work today.
Ответить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
Thank you for keeping it short and simple.
ОтветитьNice explaination.
Please make a explain video on class-based views in Django.
Exactly what I needed. Thank you for the excellent content, as always :)
Ответить+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.
ОтветитьThanks Sir!
Ответитьthis was helpful, thanks!
Ответитьhow can i return an html page on button click sir?
ОтветитьLegend, thank you!
Ответитьif i created any post or get request to filter my data is disappear as soon as i go to any other page
ОтветитьHi, this is work with flask? ex: have a flask.core.paginator ? i'm searching but nothing...
Ответить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 :)
ОтветитьAmazing video
ОтветитьThat's perfect
ОтветитьThanks for lesson
ОтветитьNice 🤩 thank you
ОтветитьThanks so much ,this helped me a lot 🤩
Ответить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?
sir how the urls code for pagination?
ОтветитьI tried this using POST method in a search form but it shows a value error ?
Ответитьhello sir, it was great .. can u pls make a video on relational models and querying objects in models
ОтветитьWhat ever I am searching u pop out and answer my question...
Thank u a lot
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
Thank you very much! With your help, I was able to understand and solve this problem!
ОтветитьHelp a lot! thank you!
ОтветитьOne of the best teacher in web!
Ответитьgreat!!!thanks
Ответитьthanks for the video finally i got the output
Ответитьlove you
ОтветитьGreat video, super helpful
ОтветитьGreat job, as usual, John!
Ответить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
Thanks
ОтветитьSir.. Waiting for django e-commerce website with class base views and adding items in cart using session..
Ответитьcan you suggest a way to monitor daily traffic?
ОтветитьThis channel is the best for python!
ОтветитьSir please make video on how to do periodic task in django for sending E-mail
ОтветитьGreat Sir!! Wanted to learn Pagination in Django. Thanks!
Ответить