On Wed, Apr 22, 2009 at 12:50 PM, tdelam <tde...@gmail.com> wrote:

>
> What's the best way to build a hierarchy menu system? e.g: Page items
> can have sub-pages and sub-pages can have sub-sub-pages and so on
> >
>
If this is meant to be dynamic I would have a model that has a nullable
foreignkey to itself.  Then you know that the root items are those with
"parent=NULL".  You can use something like django-mptt or -treebeard to give
you a very natural tree like interface to working with these.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to