Understanding Django Model Relationships

  Рет қаралды 94,995

Pretty Printed

Pretty Printed

Күн бұрын

Пікірлер: 131
@prettyprinted
@prettyprinted 4 жыл бұрын
Join my free course on working with the database and models in Django: prettyprinted.com/djangodata
@mohankrishna3635
@mohankrishna3635 4 жыл бұрын
sir you are really great, you are providing free Django course for all student
@nicolasleroy9190
@nicolasleroy9190 3 жыл бұрын
You all probably dont care at all but does someone know of a tool to log back into an instagram account..? I was stupid forgot my password. I would appreciate any tricks you can offer me
@justusjaxx1238
@justusjaxx1238 3 жыл бұрын
@Nicolas Leroy instablaster :)
@nicolasleroy9190
@nicolasleroy9190 3 жыл бұрын
@Justus Jaxx I really appreciate your reply. I found the site on google and Im in the hacking process atm. Looks like it's gonna take a while so I will get back to you later with my results.
@nicolasleroy9190
@nicolasleroy9190 3 жыл бұрын
@Justus Jaxx It did the trick and I actually got access to my account again. Im so happy:D Thank you so much you really help me out!
@agata0214
@agata0214 4 жыл бұрын
It took my bootcamp teacher 90 minutes to explain what you just did in less than 30 minutes. He left me lost and confused, yet you made me understand everything so clearly. Thank you so much.
@adnauseam1265
@adnauseam1265 4 жыл бұрын
Thank you for beautifully summarizing what would have been hours of research for me.
@prettyprinted
@prettyprinted 4 жыл бұрын
You're welcome. I'm glad I could help
@arungautam6493
@arungautam6493 2 жыл бұрын
The best explanation of model relationship i have ever seen on KZbin , thanks for this awesome video
@ermalgashimramori
@ermalgashimramori 2 жыл бұрын
I come back to this video from time to time, great content.
@dricard953
@dricard953 5 жыл бұрын
Best explanation I've seen so far. Thanks very much. You deserve many more subscribers!
@faisalislam7631
@faisalislam7631 3 жыл бұрын
You explain those so easy way
@successivevichu4313
@successivevichu4313 2 жыл бұрын
Thank you for your clear explanation about models relationship
@jmpersic
@jmpersic 5 жыл бұрын
Dude, your videos are great. Thanks for the explanations.
@supriyochowdhury4200
@supriyochowdhury4200 4 жыл бұрын
First of all a big love from India ❤️. This is a awesome tutorial. I never thought I will get that kind of professional knowledge for free. I also join your free class. I really appreciate your hard work ❤️. Please make more videos on django
@OneBigAwkwardMoment
@OneBigAwkwardMoment Жыл бұрын
so clear and concise
@tharlinhtet97
@tharlinhtet97 4 жыл бұрын
Very easy to understand explaination.
@indiansoftwareengineer4899
@indiansoftwareengineer4899 3 жыл бұрын
Thanks a lot sir, you nailed it.... love you from India.
@current1710
@current1710 5 жыл бұрын
Great explanation! Thank you.
@prettyprinted
@prettyprinted 5 жыл бұрын
You're welcome!
@mohamedabdi8377
@mohamedabdi8377 5 жыл бұрын
the first youtube video with zero dislikes i have seen!
@prettyprinted
@prettyprinted 5 жыл бұрын
Let's keep it that way!
@justhored12
@justhored12 5 жыл бұрын
Thank you so much! Keep doing what you do :)
@prettyprinted
@prettyprinted 5 жыл бұрын
You're welcome! Thank you for watching.
@MrGenbu
@MrGenbu 5 жыл бұрын
easy , on the point , helpful video
@prettyprinted
@prettyprinted 5 жыл бұрын
Thanks for watching!
@pradipyash
@pradipyash 5 жыл бұрын
Thanks this is really helpful. I have been looking this type of video for long.
@prettyprinted
@prettyprinted 5 жыл бұрын
Glad I could help!
@nirvikagarwal6575
@nirvikagarwal6575 4 жыл бұрын
A very good explanation
@mossabdia8367
@mossabdia8367 3 жыл бұрын
the 07:05 error was very educative !
@WolfKelley1
@WolfKelley1 4 жыл бұрын
Thank you for this video! Going through a django course right now and this was huge help! Nice to see quality django tutorials on here. Will be buying the course soon.
@emmanuelmichira6261
@emmanuelmichira6261 5 жыл бұрын
This is really helpful, thanks.
@prettyprinted
@prettyprinted 5 жыл бұрын
You're welcome!
@Fire_Fly_101
@Fire_Fly_101 5 жыл бұрын
This video was really helpful.. Thanks bro
@prettyprinted
@prettyprinted 5 жыл бұрын
You're welcome! Thanks for watching.
@muskankaushik3834
@muskankaushik3834 2 жыл бұрын
This is a great tutorial. Thanks a lot!
@sarazare3335
@sarazare3335 5 жыл бұрын
Very clear and helpful! Thanks a lot!!
@prettyprinted
@prettyprinted 5 жыл бұрын
You're welcome! Thanks for watching.
@krinkykrow959
@krinkykrow959 4 жыл бұрын
Thank you very much. When concluding on one to many relationships you said you'll get into more about it in another video,which one?
@thesoftwarecoder1603
@thesoftwarecoder1603 3 жыл бұрын
Hey Anthony, great explanation and easy to understand, keep going with more stuff! Thanks ;-)
@HopWorksET
@HopWorksET 3 жыл бұрын
Great tutorial on Django Model relationships! I read quite a few tutorials on this but did not really get it until I watched your video. THANK YOU! Liked and subscribed. I can't wait to watch the other videos you posted. (Thor for president!) =)
@bektursunsamatuulu9772
@bektursunsamatuulu9772 4 жыл бұрын
Comment, like, subscribe, and the bell. Thank you very much for all your hard work. Appreciate it, man.
@angtranhai6457
@angtranhai6457 4 жыл бұрын
Great, easy to follow. Thanks alot!!
@AmineOnline
@AmineOnline 3 жыл бұрын
Good explanation
@varunl680
@varunl680 4 жыл бұрын
The best video tutorial ever for django. Awesome explanation . I immediately joined your django tutorial course . Is any GitHub Repository available to refer the code available in this video ?
@_DixitParmar
@_DixitParmar 4 жыл бұрын
Extremely useful, Thank you sooo much 💞
@sagargahatraj5196
@sagargahatraj5196 3 жыл бұрын
Perfect Tutorial 👍thanks alot!!
@davidcol0125
@davidcol0125 4 жыл бұрын
Best explanation ever! Thank you.
@prettyprinted
@prettyprinted 4 жыл бұрын
Thanks for watching!
@Apoorvpandey
@Apoorvpandey 4 жыл бұрын
Pretty nicely explained !
@mojaba8546
@mojaba8546 4 жыл бұрын
wonderful video thanks a lot
@LiaAdzumi
@LiaAdzumi 5 жыл бұрын
Thanks for this great and helpful tutorials.
@prettyprinted
@prettyprinted 5 жыл бұрын
You're welcome Thanks for watching.
@kiyotaka627
@kiyotaka627 3 жыл бұрын
thanks for the great video
@BohdanDuCiel
@BohdanDuCiel 4 жыл бұрын
Gold!!! Great work
@forbidden_lion
@forbidden_lion 2 жыл бұрын
Love you man!
@danieluxury
@danieluxury Жыл бұрын
Amazing ♡♡♡ thank you so much
@MariusSemeonOrtiz
@MariusSemeonOrtiz 4 жыл бұрын
Great tutorial, thanks! could anyone tell me what shell it is he is using btw? looks nice
@wajahatali226
@wajahatali226 4 жыл бұрын
Wao superb explanation ✌️
@milandudhatra7484
@milandudhatra7484 5 жыл бұрын
Thanks for the perfect video. you are great.
@prettyprinted
@prettyprinted 5 жыл бұрын
Glad you like it!
@aashayamballi
@aashayamballi 3 жыл бұрын
Thank you 🙏🏼
@KeepCalmProgrammers
@KeepCalmProgrammers 4 жыл бұрын
Thank u so much,you teach me the concept at once :}
@lewismujana6010
@lewismujana6010 4 жыл бұрын
great video! thanks
@YogeshKumarMurugesan
@YogeshKumarMurugesan 5 жыл бұрын
Thanks for the tutorial 👍
@prettyprinted
@prettyprinted 5 жыл бұрын
You're welcome! Thanks for watching.
@rabim8819
@rabim8819 2 жыл бұрын
Thank you
@aditt19
@aditt19 5 жыл бұрын
You are awesome dude 👌👌❤️
@renzyndrome
@renzyndrome 5 жыл бұрын
clear and concise!
@prettyprinted
@prettyprinted 5 жыл бұрын
Thanks for watching!
@be_curious123
@be_curious123 2 жыл бұрын
Thank you so much...🥺😇🙏🙏🙏
@sowjanya4146
@sowjanya4146 4 жыл бұрын
so helpful
@pyderator
@pyderator 4 жыл бұрын
Thanks a lot
@mohammadrastad4147
@mohammadrastad4147 3 жыл бұрын
That was awesome
@Yash42189
@Yash42189 3 жыл бұрын
I thought you can only save without specifying a field by saying commit = false. But here we somehow do it without
@hasan8267
@hasan8267 5 жыл бұрын
very clear thank you
@prettyprinted
@prettyprinted 5 жыл бұрын
Thanks for watching!
@buncha1499
@buncha1499 5 жыл бұрын
This is awesome, thanks! :)
@prettyprinted
@prettyprinted 5 жыл бұрын
You're welcome!
@brianm2572
@brianm2572 4 жыл бұрын
great video
@mkhnuser
@mkhnuser 3 жыл бұрын
I could feel Corey Chafer intro
@secretboxkevin
@secretboxkevin 4 жыл бұрын
thanks !!!
@syedshahbaz7481
@syedshahbaz7481 4 жыл бұрын
Dear sir please explain oneTOone field too. Please
@e1nste1in
@e1nste1in 3 жыл бұрын
Why does the many-to-many table requires its own id? (Thx for the Video! :)
@e1nste1in
@e1nste1in 3 жыл бұрын
Is it to add the same character multiple times to one movie? ... and vice versa?
@akshatsingh6036
@akshatsingh6036 4 жыл бұрын
sir can u please make a video on django channels real time chat app with rest api
@ReejohnStellas
@ReejohnStellas 2 жыл бұрын
Thanks bruh
@deepanshuaggarwal7042
@deepanshuaggarwal7042 3 жыл бұрын
In One-to-one relationship, we are getting only 1 attribute data. what we have to do to get all fields data?
@isaachatilima
@isaachatilima Жыл бұрын
Hi late to the party. I have a question, say I have 3 models, Country, State or Province and City or Town. Country ID if FK in Province/State. Should I have County and State PK as FK in City or just state FK and when I query a city I would be able to get all city, state and country details? If so, how can that be done? Thanks.
@k.bharathreddy7238
@k.bharathreddy7238 2 жыл бұрын
can i create an suggest friends notification api using model relationships
@Techie-time
@Techie-time 5 жыл бұрын
Video is informative. However like any other video on this subject it indirectly assumes that the database structure started after Django was born. The fact is Data relationships or intricacies of databases are not the subject of django or any other framework. We need to look at this subject as ability of the framework to handle data relationship in a database.
@DanielDaniel-hk9el
@DanielDaniel-hk9el 4 жыл бұрын
About the example "Frameworks and Languages", how can i add a field on Languages and put the quantity of framework have the language?
@codedjango
@codedjango 4 жыл бұрын
For that you will have to use the annotate and aggregate functions ....Anthony has done a separate video on this topic
@deadlock107
@deadlock107 5 жыл бұрын
Awesome!
@lphs455
@lphs455 Жыл бұрын
How do you clear the shell?
@deeraj3069
@deeraj3069 5 жыл бұрын
awesome video....
@prettyprinted
@prettyprinted 5 жыл бұрын
Thanks for watching!
@PremSai2244
@PremSai2244 4 жыл бұрын
hey what is the tool you are using for db visualisation
@junartagulao6063
@junartagulao6063 5 жыл бұрын
This is really helpful.. You are really great!!! I have a question, how will you apply that in "for loop" in the template using ForeignKey that will print the Language and also the associated Frameworks.. Thanks in advance :-)
@prettyprinted
@prettyprinted 5 жыл бұрын
Each individual language will have an attribute called language_set. You can use that to get all the languages. So you'd have two loops in the template.
@24junar
@24junar 5 жыл бұрын
Thank you so much for your time answering my question..Please make more django tutorials.. :-)
@eakzit3181
@eakzit3181 4 жыл бұрын
on ManyToMany example Django created charater_movieS table. Is it a convention for it to add S to the name? is there a way to kinda sort this out without looking into DB - for what is the name of the table? I mean yeh I could go terminal sqlite3 or other terminal for db and schema it up, but is there a simple way or scheme to find it out?
@dhanunjaypaila4865
@dhanunjaypaila4865 5 жыл бұрын
I have a requirement to load Excel data to postgres in django. I have created models and loading using pandas dataframe (to_sql). Buy I have a chally here in building relationships between models. As far as I know, we can build relationships if we save model objects one by one using (onetoone, foreign key,manytomany). Please help me how to create relationships when we upload Excel data in one shot
@sahilbisht3661
@sahilbisht3661 4 жыл бұрын
perfect!
@saipraneeth4030
@saipraneeth4030 4 жыл бұрын
How you got that response as tables for sqlite
@ivtechnet6661
@ivtechnet6661 4 жыл бұрын
perfect... and thanku
@MUZIXABA
@MUZIXABA 5 жыл бұрын
The link to the Database Essentials course is returning a 404.
@kyojindev3978
@kyojindev3978 5 жыл бұрын
thx for video. but it`s so trivial. i think to illustrate ManyToMany example. is to use self-relation. class FacebookProfile(models.Model): ....... friend_relationship = models.ManyToManyField("self") many people didn't know about this.
@prettyprinted
@prettyprinted 5 жыл бұрын
I'll consider making a video on self relationships. Thanks for the idea.
@aleksanderradziszewski1242
@aleksanderradziszewski1242 4 жыл бұрын
It would be nice if you use better zoom.In spite of that, ok!:)
@ThePieas
@ThePieas 5 жыл бұрын
Bro, can we query them using id ? For example. I have a table of movie and another table of actors. Python automatically gives an ID to a model. so can we query them with that id ?? I tried this Actors.objects.filter(movie__id = 1) which failed Thanks In Advanced
@prettyprinted
@prettyprinted 5 жыл бұрын
Yes, of course. What do you mean it fails?
@ThePieas
@ThePieas 5 жыл бұрын
@@prettyprinted sorry, It is working now. I don't know what happened earlier. You are an awesome teacher. Currently watching the free django course on prettyprinted.com .. after finishing this i will buy the full course.
@prettyprinted
@prettyprinted 5 жыл бұрын
@@ThePieas Awesome. I look forward to seeing you in the course.
@tamirtsogbayar3912
@tamirtsogbayar3912 5 жыл бұрын
Hello thanks for all lesson i try ot making recruiting website but i have some problem i have 3 models general, education, experience general has his last name first name address phone ect education has his school information and general id also experience has his work experience information and general id problem is how to insert all data same time and get and insert general id pls help me
@prettyprinted
@prettyprinted 5 жыл бұрын
You insert backwards from the child to the parent. So create the child first, save it to get the ID, and then add to parent.
@vamshinoora7914
@vamshinoora7914 5 жыл бұрын
just need that in gui
@prettyprinted
@prettyprinted 5 жыл бұрын
I use VS Code in the video.
@atlaschooty
@atlaschooty 5 жыл бұрын
Damm, amazing..
@RL89pl
@RL89pl 4 жыл бұрын
First you say "language='python' no i can't do that"... 30 sec later you created bottle just like this...
@ramiz3570
@ramiz3570 4 жыл бұрын
+
@Ali-kx7jf
@Ali-kx7jf 3 жыл бұрын
#_BEST_EVER_
@TheZipzapzum
@TheZipzapzum 3 жыл бұрын
This guy is true fan of captain america
@mohamedmoselhy8514
@mohamedmoselhy8514 4 жыл бұрын
Well-explained, thank you for this!
@KrisAlcordo
@KrisAlcordo 4 жыл бұрын
Thank you!
Connect to a MongoDB in Django Using Djongo
7:47
Pretty Printed
Рет қаралды 55 М.
ЭТО НАСТОЯЩАЯ МАГИЯ😬😬😬
00:19
Chapitosiki
Рет қаралды 3,6 МЛН
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 9 МЛН
OYUNCAK MİKROFON İLE TRAFİK LAMBASINI DEĞİŞTİRDİ 😱
00:17
Melih Taşçı
Рет қаралды 13 МЛН
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,4 МЛН
The Basics of Django Models
37:32
Pretty Printed
Рет қаралды 99 М.
A bad attempt to explain how to choose the right table relationship
39:49
django Architecture - Connection Management
15:10
Hussein Nasser
Рет қаралды 48 М.
Learn Django - Build a Custom User Model with Extended Fields
39:42
Understanding Django Generic Views
16:29
Chuck Severance
Рет қаралды 13 М.
Adding Extra Fields On Many-To-Many Relationships in Django
17:45
Pretty Printed
Рет қаралды 43 М.
How Model Queries Work in Django
27:47
Pretty Printed
Рет қаралды 95 М.
ЭТО НАСТОЯЩАЯ МАГИЯ😬😬😬
00:19
Chapitosiki
Рет қаралды 3,6 МЛН