So, this is my first time learning computer language. And I chose python and django. Now, I got many of the basic concepts of python and also django. I can create new page with the views and all other stuff. But I am still confused with the relations, i.e. one to one, many to one, and many to many. Will someone please please please explain it to me. How can I use it? I really need to know.
N.B: I have looked at this link for that, but I still have some doubts about one-to-one
and many-to-many
. Suppose I want to extend with some more user information in a different class. Can I use ForeignKey
instead of One-to-One
field? And will anyone please be kind enough to explain to me about many-to-many
relationship, (I didn't quit understood all those toppings and membership thing).
Thanks.