Django-MPTT

Django-MPTT

Django-MPTT is a reusable Django app which aims to make it easy for you to use MPTT with your Django models. The MPTT (Modified Preorder Tree Traversal) technique is used for storing hierarchical data in a database. Django-MPTT makes the retrieval operations of your structural data very efficient. The tradeoff for such a tree structure is the time to perform inserts increases. There is also a need to keep the tree in a good state at all times, all of which requires a little bit of extra work, but is really easy to handle with the tools included in the Django-MPTT package.

What is Django-MPTT?

Django-MPTT is a reusable Django app which aims to make it easy for you to use MPTT with your Django models. The MPTT (Modified Preorder Tree Traversal) technique is used for storing hierarchical data in a database. Django-MPTT makes the retrieval operations of your structural data very efficient. The tradeoff for such a tree structure is the time to perform inserts increases. There is also a need to keep the tree in a good state at all times, all of which requires a little bit of extra work, but is really easy to handle with the tools included in the Django-MPTT package.

To learn more about the topic you can check out the best tutorials for Django-MPTT (the topic). Or see what Django-MPTT books are currently trending.