Django - Model graphic representation (ERD)

Pierre de LESPINAY picture Pierre de LESPINAY · Jul 21, 2011 · Viewed 41.5k times · Source

I'm searching a way to represent my Django project model graphically.

Is there a "native" way to do this kind of ERD (diagram) ?


Update following @Etienne instructions

Here is an example of how I finally view the PDF representing some models of my django project

$ python manage.py graph_models app1 app2 ... | dot -Tpdf | evince
  • It actually generates the dot data with my applications (app1, app2, ...)
  • Passes the result to dot to output into PDF format
  • Opens the output with evince

Answer

Etienne picture Etienne · Jul 21, 2011

If you want to extract UML diagram from your Django models you can use the Graph models command of django-extensions. Another one that do mostly the same thing: django-graphviz.

If you want to create your Django models from UML: uml-to-django.

And to create UML diagrams, there's Dia, yED and ArgoUML

You can check also this list of tools.