What are the Types of Model relationships in django ?



What are the Types of Model relationships in django ?..

Answer / Rajesh Kumar Shukla

In Django, there are several types of model relationships:
1. One-to-one (`OneToOneField`).
2. One-to-many (`ForeignKey`).
3. Many-to-many (using `ManyToManyField` and `through=...`).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Django Python Interview Questions

What are caching strategies in django?

1 Answers  


What is numpy and how is it better than a list in python ?

1 Answers  


Is django a content management system (cms)?

1 Answers  


What is jinja in django?

1 Answers  


What do you mean by the csrf_token?

1 Answers  


What is the uses of middleware in django?

1 Answers  


What are the best backend web frameworks?

1 Answers  


List out the inheritance styles in django?

1 Answers  


How to clear cache in django ?

1 Answers  


Is django a high-level web framework or low-level framework?

1 Answers  


What is DRF of Django Rest Frame work ?

1 Answers  


Why use django crispy forms?

1 Answers  


Categories