django-mptt/django-mptt
Utilities for implementing a modified pre-order traversal tree in django. observed · 2026-08-28
Health v2 · maintenance only
70/100
- Activity 85
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5846
- days_rel: n/a
- days_push: 92
- n_releases_24m: 0
Adoption not part of the score
2971 stars · 463 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Django library that implements Modified Preorder Tree Traversal (MPTT) for storing and querying hierarchical data in relational databases. It stores pre-computed left/right/level/tree_id values on each row to make tree reads fast, at the cost of heavier writes.
Use cases
- store hierarchical data like categories or menus in Django
- query ancestor and descendant relationships efficiently
- render tree structures in Django templates
- manage threaded comments in a Django app
- reorder and move nodes within a tree hierarchy
When to choose
- you have an existing Django project already using django-mptt
- reads dominate over writes and you need fast subtree queries on older databases without recursive CTE support
When to avoid
- starting a new project — the README explicitly says the project is unmaintained
- your database supports recursive CTEs (prefer django-tree-queries)
- your workload is write-heavy with concurrent inserts, moves, or deletes
- you rely on bulk operations or raw SQL that bypass the tree update logic
Facets
library · maturity maintenance
orm database databases web-development developer-tools python django mptt hierarchical-data tree-structure unmaintained
2 sources
- readme: https://github.com/django-mptt/django-mptt · fetched 2026-08-28 · 1206a02c2a46
- registry_pypi: https://pypi.org/pypi/django-mptt/json · fetched 2026-08-29 · 8758f1c82097
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| django-mptt/django-mptt | main | 70 |
For agents
markdown · JSON · MCP: product_card(name="django-mptt/django-mptt")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem