Hai Dong wrote: > I was wondering how to use django to achieve the following application. > Suppose my articles are organized in categories, subcategories, and > subsubcategories. Database wise it will be good to have a category table > with a parent_id referring to itself. I don't know how to achieve this > by django database model, and also the __unicode__(self) function.
Try this: http://code.djangoproject.com/wiki/CookBookCategoryDataModelPostMagic -- Nicola Larosa - http://www.tekNico.net/ Being online demands a tremendous amount of discipline. You must shut out the world around you and focus exclusively on a glowing screen. You must sit in a chair for hours on end and will your body to remain still. You are at an altar, but you are both priest and supplicant. -- Scott Jason Cohen, July 2000 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

