What's the difference between django onetoonefield and foreignkey?
Answer / Mohan Chandra
A Django OneToOneField creates a one-to-one relationship between two models, where each instance of one model can have only one related instance from another model. A ForeignKey, on the other hand, allows multiple instances of one model to be related to one instance of another model.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are population websites built on django ?
List out the inheritance styles in django?
Explain inheritance in python with an example ?
How to get current page uri in django template.
What is verbose_name in django?
Why is django so popular?
What is jinja in django?
Can I learn django without python?
Do you need to know python to use django?
Is django better than php?
What is the difference between the range & x range?
What does django-admin.py makemessages command is used for?