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
Feb 15, 2026
|
App | 0.18.0 | 113 | 2,965 | 466 | Feb 15, 2026 |
| App | 0.7.1 | 8 | 1,188 | 148 | Feb 16, 2026 | |
| App | 5.0.2 | 27 | 1,180 | 220 | Feb 15, 2026 | |
|
django-treenode
:deciduous_tree: probably the best abstract model/admin for your tree based stuff.
App
0.23.3
3
Feb 15, 2026
|
App | 0.23.3 | 3 | 793 | 38 | Feb 15, 2026 |
|
django-tree-queries
Adjacency-list trees for Django using recursive common table expressions. Supports PostgreSQL, sqlite, MySQL and MariaDB.
Other
0.23.0
2
Feb 15, 2026
|
Other | 0.23.0 | 2 | 501 | 32 | Feb 15, 2026 |
| Framework | 0.1.8 | 5 | 359 | 80 | Feb 16, 2026 | |
| App | 0.2.0 | 1 | 309 | 61 | Feb 15, 2026 | |
| App | 2.1 | 4 | 169 | 41 | Feb 15, 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
Feb 15, 2026
|
App | 0.6.0 | 0 | 72 | 19 | Feb 15, 2026 |
| App | 1.4.3 | 2 | 66 | 18 | Feb 15, 2026 | |
| Other | 1.2.0 | 0 | 63 | 25 | Feb 15, 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.2
1
Feb 15, 2026
|
App | 2026.2.2 | 1 | 48 | 6 | Feb 15, 2026 |
| App | 0.1.13 | 0 | 47 | 6 | Feb 15, 2026 | |
|
django-fast-treenode
A hybrid, high-performance, open-source framework for working with large trees in Django
App
3.2.7
0
Feb 16, 2026
|
App | 3.2.7 | 0 | 35 | 5 | Feb 16, 2026 |
| App | 1.2.2 | 2 | 26 | 8 | Feb 15, 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
Feb 15, 2026
|
App | - | 0 | 21 | 2 | Feb 15, 2026 |
| App | 0.2.2 | 0 | 9 | 5 | Feb 16, 2026 | |
| App | 0.4.1 | 1 | 3 | 1 | Feb 16, 2026 |