Database Table Relationship in Django Models, One To One, Many To One and Many to Many

  Рет қаралды 26,643

Dipak Niroula

Dipak Niroula

Күн бұрын

Пікірлер: 33
@moneeshkumar1838
@moneeshkumar1838 3 жыл бұрын
I watched many videos, can't understand the concept Finally watched your video, got the clear understating Great explanation man. Thanks
@davidandai_w412
@davidandai_w412 2 жыл бұрын
This is absolutely amazing to understanding the concept of Database Relationship in Django.
@gunjanp8576
@gunjanp8576 8 ай бұрын
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.
@sangitniroula
@sangitniroula 8 ай бұрын
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.
@JaeBlaze07
@JaeBlaze07 5 ай бұрын
You explained this so well, very helpful! 🙌
@balamuruganloganathan7039
@balamuruganloganathan7039 2 жыл бұрын
Very clear explanation. Beginner can also easily understand the django model relationship. Thank you Dipak bro.
@surajadhikari7766
@surajadhikari7766 3 жыл бұрын
Perfect explanation to understand relations in django.
@ApnaVlogs-tj7do
@ApnaVlogs-tj7do Ай бұрын
You are champ bro , thanks
@tarfiain
@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
@obulareddyguda567
@obulareddyguda567 2 жыл бұрын
Best video for django model relationship. Thanks bro ❤👌
@sushmagowda6015
@sushmagowda6015 Жыл бұрын
This something I was hunting for! thanks a lot
@irynafriaf5762
@irynafriaf5762 Жыл бұрын
Thank you so much for this video. Helped a lot! ❤
@jayantkeer3416
@jayantkeer3416 Жыл бұрын
This is very nice video
@shahidullah233
@shahidullah233 3 жыл бұрын
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
@sangitniroula
@sangitniroula 3 жыл бұрын
make str method in your model and return string that you want. eg. def __str__(self): return self.title
@shahidullah233
@shahidullah233 3 жыл бұрын
@@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-dq3ph
@VijayKumar-dq3ph 2 жыл бұрын
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?
@sangitniroula
@sangitniroula 2 жыл бұрын
docs.djangoproject.com/en/4.0/topics/db/multi-db/#limitations-of-multiple-databases
@sangitniroula
@sangitniroula 2 жыл бұрын
But you can make it possible by writing your custom module/orm according to the requirement.
@hari3658
@hari3658 Жыл бұрын
can you tell me how to display these multiple interest of a person on HTML using context and jinja .
@teqteps5786
@teqteps5786 3 жыл бұрын
Thanks Brother! it's great.
@aravindkumar9427
@aravindkumar9427 3 жыл бұрын
Can you please tell how to handle the following query in django model select column1 , column 2 , column3 from tabel_x where column4 = 'rowvalue'
@PrAsHaNtHdUke1093
@PrAsHaNtHdUke1093 3 жыл бұрын
thanks a lot bro...i have understand this concept...thanks for uploading this video..upload more videos bro
@mohit8299
@mohit8299 6 ай бұрын
superr videoo
@giteshraval8576
@giteshraval8576 3 жыл бұрын
the best video ever,,, please post a video to authenticate user via email
@ajaykryadav
@ajaykryadav Жыл бұрын
👍👍 good
@aravindkumar9427
@aravindkumar9427 3 жыл бұрын
Can u explain select_related and prefetch_related bro
@pradipathawale8285
@pradipathawale8285 Жыл бұрын
Tell how to insert data from front end into many to many field
@AmitRajpurohit
@AmitRajpurohit Жыл бұрын
Thanks 👏
@gouthami_pittala
@gouthami_pittala 3 жыл бұрын
Thanks bro👍
@vonputtkamer1673
@vonputtkamer1673 3 жыл бұрын
please for the source code link sir
@cricketisourpassion6956
@cricketisourpassion6956 2 жыл бұрын
thanks you sir this is amazing please send source code.
@aravindkumar9427
@aravindkumar9427 3 жыл бұрын
Now only got something idea in models
Django Rest Framework API #22 / Many To Many Relationship , Nested Data
31:20
1 сквиш тебе или 2 другому? 😌 #шортс #виола
00:36
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 2,9 МЛН
Inside Out 2: ENVY & DISGUST STOLE JOY's DRINKS!!
00:32
AnythingAlexia
Рет қаралды 17 МЛН
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17
Understanding Django Model Relationships
25:56
Pretty Printed
Рет қаралды 95 М.
Django Rest Framework for Beginners - Simple CRUD API
14:22
John Watson Rooney
Рет қаралды 51 М.
AJAX get and post request with Django and Axios Library, Step by Step
45:13
Adding Extra Fields On Many-To-Many Relationships in Django
17:45
Pretty Printed
Рет қаралды 43 М.
Foreign Key Models Setup in Django in Tamil
10:54
Code Camp Tamil
Рет қаралды 1,4 М.
1 сквиш тебе или 2 другому? 😌 #шортс #виола
00:36