Tuesday, October 29, 2013

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

Thank you so much! I will look into that! :)

On Tuesday, October 29, 2013 1:37:37 AM UTC+5:30, C. Kirby wrote:
Those concepts are actually RDBMS (Database) ideas. You would probably be better off reading up on those. This looks to be a pretty good explanation:
http://net.tutsplus.com/tutorials/databases/sql-for-beginners-part-3-database-relationships/


On Monday, October 28, 2013 2:06:20 PM UTC-5, 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/859a5ba6-34d1-4994-9e55-1ceb81549a50%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment