Wednesday, October 30, 2013

Re: django difference between - one to one, many to one and many to many

Thank you! That did helped.

On Tuesday, October 29, 2013 12:36:20 AM UTC+5:30, Aamu Padi wrote:

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.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0ab4c921-9226-4592-951c-3e5c8ed6b775%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment