Database Table Relationship in Django Models, One To One, Many To One and Many to Many Using Forward and Reverse relation to get objects from related objects and vice versa.
Пікірлер: 33
@moneeshkumar18383 жыл бұрын
I watched many videos, can't understand the concept Finally watched your video, got the clear understating Great explanation man. Thanks
@davidandai_w4122 жыл бұрын
This is absolutely amazing to understanding the concept of Database Relationship in Django.
@gunjanp85768 ай бұрын
Sir i want to show table on my home page and in tabel there are columns like person name, addresss, city, intrest,etc. So how can i fetch all data in view and pass through context to template. Please help. In your tutorial you fetch data on the basis of id , i want that all the data without id.
@sangitniroula8 ай бұрын
I recommend watching my tutorial on making ecommerce using django. Here is the link to this kzbin.info/www/bejne/f6uTaqOVd515f5I&ab_channel=DipakNiroula. You can find lots of ways of fetching data from database and presenting them in the UI there.
@JaeBlaze075 ай бұрын
You explained this so well, very helpful! 🙌
@balamuruganloganathan70392 жыл бұрын
Very clear explanation. Beginner can also easily understand the django model relationship. Thank you Dipak bro.
@surajadhikari77663 жыл бұрын
Perfect explanation to understand relations in django.
@ApnaVlogs-tj7doАй бұрын
You are champ bro , thanks
@tarfiain Жыл бұрын
Hey sir good evening......thank uh for your amazing video it clarifies my 3-4 doubts ....plz keep posting videos like this process only....thanks alottt sir.......and before living let me inform uh......your voice is Masha Allah ......may Allah accept your all hala dua's.....ameen.....stay concentrated and succeed sir...thank uh
@obulareddyguda5672 жыл бұрын
Best video for django model relationship. Thanks bro ❤👌
@sushmagowda6015 Жыл бұрын
This something I was hunting for! thanks a lot
@irynafriaf5762 Жыл бұрын
Thank you so much for this video. Helped a lot! ❤
@jayantkeer3416 Жыл бұрын
This is very nice video
@shahidullah2333 жыл бұрын
Best video to understand the relationship....i am having some problem in my project ....in the admin page some dropdown field show object(1)....not the name...i still cant figure it out what is the problem
@sangitniroula3 жыл бұрын
make str method in your model and return string that you want. eg. def __str__(self): return self.title
@shahidullah2333 жыл бұрын
@@sangitniroula i did...like yours models.py....i have 5 models class....in which last 2 class are connected to other 3 class....every str method works fine even i can see strings in the dashboard. Problem is....like your personadress class you inherited person name and city...like wise i also had inherited name from one class and city from another class...both are onetoone relation...now when i go to add person address to add new...i found name shows names but city shows cityobject(1).... I hope you can now understand....hope to get some solution
@VijayKumar-dq3ph2 жыл бұрын
Hi , do you have video explaining foreign key relations among tables of different databases or can you give any hint on how to achieve that?