No video

Django ORM - Querying and Creating Records / Working with Foreign Keys

  Рет қаралды 12,005

BugBytes

BugBytes

Күн бұрын

Пікірлер: 73
@bugbytes3923
@bugbytes3923 4 ай бұрын
Playlist link: kzbin.info/www/bejne/e6SlonyQordli8U
@anouarbagent2511
@anouarbagent2511 Жыл бұрын
this is literally the best Django Channel there is, keep up the good work Lyle it will definitely get much bigger.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Wow, thanks Anouar! Glad you like the content!
@Davidkiania
@Davidkiania Жыл бұрын
I agree entirely ..
@anthonykarungu1419
@anthonykarungu1419 4 ай бұрын
Totally agree. I really follow your content now.
@hiankitkr
@hiankitkr Жыл бұрын
showing sql was great, it gives idea of what queries is being executed, keep doing it.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks Ankit, will do!
@sidds09
@sidds09 Жыл бұрын
great. I don't think anybody explaining these things in django. most just touch the basic things. super helpful. just keep on doing.. . hope you also spend enough time on authentication and show custom user models in future.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you - glad it is helpful :) Will do!
@552rajeshyadav2
@552rajeshyadav2 Жыл бұрын
I don't get any channel regarding django orm since past few months but got an exciting series from heaven thank u❤❤❤❤
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you so much, really appreciate the nice comment! 🙂
@AmoahDevLabs
@AmoahDevLabs Жыл бұрын
It's always good to have you here. Thanks very much for the insights you've been given.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot!
@seydinaoumarsamabaly1806
@seydinaoumarsamabaly1806 Жыл бұрын
So simple, so easy to learn with you master 🙌🏾. Thank you.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you for the support Seydina! 😀
@Davidkiania
@Davidkiania Жыл бұрын
Dj-Sensei 😁
@bugbytes3923
@bugbytes3923 Жыл бұрын
@@Davidkiania 😅
@Davidkiania
@Davidkiania Жыл бұрын
Thank you so much for this tutorial and of course very interested in this content and please continue in this very format there's very little internet content on the same. Excellent stuff
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you David - will do!
@silkogelman
@silkogelman Жыл бұрын
This is a great tutorial about querying the database with Django! 🙏😀👍 I like that you show the under-the-hood SQL queries sometimes (and not too much). And as pprint alternative: the rich and django-rich libraries are great for pretty printing stuff to the terminal too.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot Sil! I'll look into rich/django-rich - haven't used those tools yet.
@silkogelman
@silkogelman Жыл бұрын
@@bugbytes3923 With rich I love that it requires zero code change as drop-in replacement 'from rich import print'. Done.
@Ego_Maritm
@Ego_Maritm Жыл бұрын
As always, great, high level, and detailed videos. Thank you so much.💪
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot! :)
@iiju8212
@iiju8212 Жыл бұрын
I haven't seen the video yet. But I am grateful that you are putting such videos out.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you - hope you like this video.
@carstenthies9597
@carstenthies9597 Жыл бұрын
Excellent video series so far. A bit fast but that keeps you focused. Not exactly for people with a moder super short attention span. Thank You so much for putting this together, learning a lot.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you! I'll take the suggestions on board, too! Thanks for watching.
@LegionLeague
@LegionLeague Жыл бұрын
Please keep going with this series. Like from me on every single video here. This is amazing.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot! Really happy the series has been useful - got around 15 more videos written up, so plenty more to come!
@iwswordpress
@iwswordpress 8 ай бұрын
another excellent video! Channel is probably the best for Django and related subjects.
@bugbytes3923
@bugbytes3923 8 ай бұрын
Thanks a lot!
@ffzz007
@ffzz007 Жыл бұрын
Thanks Alot... You are my Django Mentor
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot! :)
@ytouate
@ytouate Жыл бұрын
Very Great content, Just keep doing the queries explanation and Thank you
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot!
@ammaryasser4839
@ammaryasser4839 7 ай бұрын
Go on, if you make a complete course on Django for beginners it will be very useful and it will be a unique explanation
@bugbytes3923
@bugbytes3923 7 ай бұрын
I'm looking forward to doing this at some point - just need to find the time!
@Surajkumar-ok4ze
@Surajkumar-ok4ze 4 ай бұрын
Awesome explanation
@bugbytes3923
@bugbytes3923 4 ай бұрын
Thanks a lot!
@nicenaija9952
@nicenaija9952 Жыл бұрын
I see you’ve reviewed django-hijack. Have a look at Django-unfold too
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks, will do!
@zxmu5755
@zxmu5755 2 ай бұрын
¡Gracias!
@bugbytes3923
@bugbytes3923 2 ай бұрын
Thanks so much!
@SOHAILKHAN-iu8fu
@SOHAILKHAN-iu8fu Жыл бұрын
Awesome video 💪 plz Also make video on django subquery
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you! For sure, I'll do one on this later in this series.
@shamshad-live
@shamshad-live Жыл бұрын
Perfect explanation !
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot!
@frameff9073
@frameff9073 Жыл бұрын
Good thank
@Just4Pro1
@Just4Pro1 3 ай бұрын
i think we shouldn't use get_or_create for user rating beacuse if user previously gave 5 star to a restaurant and now it's dissatisfied and want to give 2 stars then get_or_create will not be able to find the 5star rating of the user and will create another record in Ratings table with 2 star rating and it will lead to duplicates in rating unless user field is defined as unique thank you so much for your effort, great series
@zxmu5755
@zxmu5755 2 ай бұрын
Thank you so much!
@bugbytes3923
@bugbytes3923 2 ай бұрын
Thanks for watching!
@olable9
@olable9 10 ай бұрын
I'm definitely interested
@bugbytes3923
@bugbytes3923 10 ай бұрын
Thank you!
@TomislavMiletic
@TomislavMiletic Жыл бұрын
Thank you, 3 lessons in and already better than paid udemy orm course, straight to the point without losing time on theory. Is there an option to pay something in order to suggest, and you maybe take into consideration to create a video on that subject?
@bugbytes3923
@bugbytes3923 Жыл бұрын
Hi Tomislav - thanks a lot for your support! You are free to suggest anything here, thank you! If you can support in any way (no obligation of course), there is also a ko-fi page: ko-fi.com/bugbytes Thanks again and glad you're enjoying the series! I have actually just this second finished recording the next video in this series - will be released this week.
@batuhanunal9380
@batuhanunal9380 8 ай бұрын
Wonderful
@bugbytes3923
@bugbytes3923 8 ай бұрын
Thanks a lot!
@studioteque
@studioteque Жыл бұрын
Would love it if you would do a video on creating a multi-tenant Django app. For example a SaaS that allows for organizations with multiple related users.
@amine63404
@amine63404 6 ай бұрын
Great tutorial. I have a question please. When you have three tables as following : Restaurant Sale - fk restaurant Invoice - fk sale How do you get all invoices related to the restaurant ? Can we use something like Restaurant.sale_set.all().invoice_set.all() ??? Thank you again for such a great tutorial.
@ohbhaibadiya
@ohbhaibadiya 8 ай бұрын
This made Django learning very simple.. I just had one doubt, in normal query even when you were doing all the sql query has limit 21, did you configure that somewhere or is it default or where is that coming from? Thanks again for videos.
@MayasMess
@MayasMess Жыл бұрын
Awesome video 💪
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot!!
@raffritter6766
@raffritter6766 Жыл бұрын
Thank you very much! 👍 Where would you put that logic? Do you use fat models? Btw. I'm interested in sql queries though I'm glad the ORM does the heavy lifting.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks! I put a lot of the logic in models usually. Or use a custom manager or queryset implementation - more on that later in this series! Generally, in a real app, I try to keep the views thin, with different techniques for doing so.
@raffritter6766
@raffritter6766 Жыл бұрын
@@bugbytes3923 Awesome, I can't wait to see that in action!
@jedi2light
@jedi2light 4 ай бұрын
Isn't it confusing that UPDATE statement on save() method call contains all the fields whereas we only changed `name` of the restaurant? 23:56 Just in case if someone is wondering how to avoid it, we can pass `update_fields` to `save()` methods which a list of strings where each string is the name of the field we want to include in `UPDATE...` statement produced by Django ORM
@Zzz-xt6ki
@Zzz-xt6ki 5 ай бұрын
I am not getting suggestions like rating.object.create and rating.object.filter(). How to get those?
@pedarayududola1672
@pedarayududola1672 4 ай бұрын
I'm getting the error ModuleNotFoundError: No module named 'django_extensionscore'
@bugbytes3923
@bugbytes3923 4 ай бұрын
Make sure you have django-extensions installed (you can install with pip) It’s concatenating that with the “core” app - are you missing a comma between the two elements in INSTALLED_APPS?
@user-xu7jz4li7e
@user-xu7jz4li7e Жыл бұрын
First!
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks 😄
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 90 МЛН
Throwing Swords From My Blue Cybertruck
00:32
Mini Katana
Рет қаралды 11 МЛН
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 193 М.
Writing My Own Database From Scratch
42:00
Tony Saro
Рет қаралды 218 М.
Django Database Transactions / atomic() function
34:15
BugBytes
Рет қаралды 5 М.
DjangoCon 2022 | Deep Inside Django's ORM: How Django Builds Queries
24:44
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 356 М.
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 90 МЛН