Trees and Graphs Packages
Even in relational databases, Django can easily do hierarchical data models. http://science.nasa.gov/ is a good example of what can be done.
|
Version
|
||||||
|---|---|---|---|---|---|---|
|
django-mptt
Utilities for implementing a modified pre-order traversal tree in django.
App
0.18.0
113
May 04, 2026
|
App | 0.18.0 | 113 | 2,971 | 465 | May 04, 2026 |
| App | 5.0.5 | 27 | 1,198 | 224 | May 04, 2026 | |
| App | 0.7.1 | 8 | 1,188 | 148 | May 04, 2026 | |
|
django-treenode
:deciduous_tree: probably the best abstract model/admin for your tree based stuff.
App
0.24.0
3
May 04, 2026
|
App | 0.24.0 | 3 | 798 | 38 | May 04, 2026 |
|
django-tree-queries
Adjacency-list trees for Django using recursive common table expressions. Supports PostgreSQL, sqlite, MySQL and MariaDB.
Other
0.24.0
2
May 04, 2026
|
Other | 0.24.0 | 2 | 510 | 32 | May 04, 2026 |
| App | 0.2.0 | 1 | 310 | 61 | May 04, 2026 | |
| App | 2.1 | 4 | 170 | 41 | May 04, 2026 | |
|
django-ltree
An ltree extension implementation to support hierarchical tree-like data using the native Postgres extension ltree in django models
App
0.6.0
0
May 04, 2026
|
App | 0.6.0 | 0 | 75 | 19 | May 04, 2026 |
| App | 1.4.3 | 2 | 66 | 18 | May 04, 2026 | |
| Other | 1.2.0 | 0 | 64 | 25 | May 04, 2026 | |
|
django-postgresql-dag
Directed Acyclic Graphs with a variety of methods for both Nodes and Edges, and multiple exports (NetworkX, Pandas, etc). This project is the foundation for a commercial product, so expect regular improvements. PR's and other contributions are welcomed.
App
2026.2.3
2
May 04, 2026
|
App | 2026.2.3 | 2 | 53 | 6 | May 04, 2026 |
| App | 0.1.13 | 0 | 48 | 6 | May 04, 2026 | |
|
django-fast-treenode
A hybrid, high-performance, open-source framework for working with large trees in Django
App
3.2.10
0
May 04, 2026
|
App | 3.2.10 | 0 | 36 | 5 | May 04, 2026 |
| App | 1.2.2 | 2 | 26 | 8 | May 04, 2026 | |
|
django-easytree
Another attempt at modified preordered tree traversal. Meant to be as generic as possible, should be easy to use in the admin. And a apology to gpicon for stealing code from treebeard ;)
App
-
0
May 04, 2026
|
App | - | 0 | 21 | 2 | May 04, 2026 |
| App | 0.2.2 | 0 | 9 | 5 | May 04, 2026 | |
| App | 0.4.1 | 1 | 3 | 1 | May 04, 2026 |