What is the difference between following. Why should I use annotate print(Sale.objects.annotate(profit=F('income')-F('expense')).values('profit')) print(Sale.objects.values(profit=F('income')-F('expense'))) Most importantly, Sir you are doing a Gr8 work.
The videos are quite clear in terms of the functionality you are trying to present, but I think sometimes we dont have that much of experience with SQL, so you should not comment the connection.queries print statement, because we want to see how each query runs. We could also do it while practicing, but it would be great if you could keep it enabled for most of the time, in case we want to see what is happening behind the scenes.
When running prefetch and select related, how do we get back products.promo.price rather than products__promo__price? The first method allows me to reuse templates rather than having to go into templates and add the dunder to every occurrence
ORM Playlist link: ruclips.net/video/EsBqIZmR2Uc/видео.html
I can feel a great understanding of Django from your end. I always look for your videos first for any concept. Perfectly understood, thanks 👍👍
The F class well explained and understood now 😁, thank you Master 🙌🏾.
Thanks as always!
What is the difference between following. Why should I use annotate
print(Sale.objects.annotate(profit=F('income')-F('expense')).values('profit'))
print(Sale.objects.values(profit=F('income')-F('expense')))
Most importantly, Sir you are doing a Gr8 work.
The videos are quite clear in terms of the functionality you are trying to present, but I think sometimes we dont have that much of experience with SQL, so you should not comment the connection.queries print statement, because we want to see how each query runs.
We could also do it while practicing, but it would be great if you could keep it enabled for most of the time, in case we want to see what is happening behind the scenes.
Thanks for the suggestion! I'll keep that in mind for future ORM videos.
Man You are a life saver. Thank you very much for these series. Subscribed liked. Keep up the good work, enabled the notification.
Really, It is one of the best Channel over the RUclips for Django ORM.
Thank You so much for this knowledge. ☺☺
Thanks a lot - really appreciate the comment!
It is brilliant explain for stupid me. Thx so much
Learned something new. Great content
Thank you!
Cool video as always.Thanks.
Thanks a lot 🙏
Great video. Would love to see you cover Django and APScheduler at some point!
Thanks! Not used APScheduler before, I’ll need to look into that.
Thank you for sharing your knowledge good Sir.
Thank you!
Great und interesti g video
Thank you!
That's great sir.
Thank you!
Thank you!
You're welcome, thanks for watching!
Thanks is not enough, thanks
Thanks so much!
thank
Thanks for watching!
When running prefetch and select related, how do we get back products.promo.price rather than products__promo__price? The first method allows me to reuse templates rather than having to go into templates and add the dunder to every occurrence