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.

1 Django-MPTT Alternatives

Django-treebeard
0
0
0
Django-treebeard is a Python library that can be used to create efficient tree implementations for the Django Web Framework 1.11 and later. The library is free, open-source and licensed under the Apache License 2.0. Django-treebeard includes 3 different tree implementations with the same API, Adjacency List, Materialized Path and Nested Sets....

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.