Data/GitHub/Framework

django-admin-graph

by MartinCastroAlvarez·Last observed 2026-10-26
★ 0 stars⑂ 0 forks

A Python library that reads a Django admin site and returns a typed graph of apps, models, relations, ModelAdmins, actions, and permissions, filtered to what the requesting user may see. The graph can be exported to common diagram and data formats or exposed through a staff-only endpoint.

Useful for

  • Generate a permission-filtered representation of a Django admin site for agents, documentation generators, ERD tools, or admin frontends.

Key features

  • The graph can be exported as JSON, Mermaid ER diagrams, GraphViz DOT, or a `networkx` graph, and can be generated from Python, `manage.py`, or a staff-only URL.
  • The graph reflects the requesting user's visibility and permissions; models they cannot see are omitted, and record data is not read.

Project information

CategoryData
TypeFramework
Author / organizationMartinCastroAlvarez
LicenseMIT
Last observed2026-10-26

Discussion

No comments yet.

Sign in with Google to comment. Browsing is open to everyone.

Community vote