Nafiul,

Either dig into the django-mptt code and pull out the bits you need, or
look at MPTT and roll your own.
http://www.sitepoint.com/hierarchical-data-database-2/ has a reasonable
explanation (with code written in some archaic script ;) ) of how MPTT
works.

John


On 09/07/13 14:26, Gamesbrainiac wrote:
> Thanks for answering, but is there a simple way that does not use a
> third-party library? I'd like to have as much control over this as
> possible.
>
>
> On 9 July 2013 19:11, Elliot Bradbury <[email protected]
> <mailto:[email protected]>> wrote:
>
>     Check out django-mptt for creating parent/child (tree)
>     relationships between
>     models. https://github.com/django-mptt/django-mptt
>
>
>     On Tue, Jul 9, 2013 at 9:07 AM, Nafiul Islam
>     <[email protected] <mailto:[email protected]>> wrote:
>
>         How would you create a node using Django's ORM. This is what I
>         mean: https://dpaste.de/JG52c/
>
>         Now, what I am basically trying to create is a liked list with
>         nodes here.
>         -- 
>         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 [email protected]
>         <mailto:django-users%[email protected]>.
>
>         To post to this group, send email to
>         [email protected]
>         <mailto:[email protected]>.
>         Visit this group at http://groups.google.com/group/django-users.
>         For more options, visit https://groups.google.com/groups/opt_out.
>          
>          
>
>
>     -- 
>     You received this message because you are subscribed to a topic in
>     the Google Groups "Django users" group.
>     To unsubscribe from this topic, visit
>     https://groups.google.com/d/topic/django-users/wvXc7VehovQ/unsubscribe.
>     To unsubscribe from this group and all its topics, send an email
>     to [email protected]
>     <mailto:django-users%[email protected]>.
>     To post to this group, send email to [email protected]
>     <mailto:[email protected]>.
>     Visit this group at http://groups.google.com/group/django-users.
>     For more options, visit https://groups.google.com/groups/opt_out.
>      
>      
>
>
>
>
> -- 
> Kind Regards,
>
> Quazi Nafiul Islam
> -- 
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to