|
GraphModels
Creates a GraphViz dot file for the specified app names. You can pass multiple app names and they will all be combined into a single model. Output is usually directed to a dot file. With the latest revisions it's also possible to specify an output file if pygraphviz is installed and render directly to an image or other supported filetype. Example UsageWith django-command-extensions installed you can create a dot-file or an image by using the graph_models command. Like used in the following examples: # Create a dot file $ ./manage.py graph_models -a > my_project.dot # Create a PNG image file called my_project_visualized.png with application grouping $ ./manage.py graph_models -a -g -o my_project_visualized.png # Create a dot file for only the 'foo' and 'bar' applications of your project $ ./manage.py graph_models foo bar > my_project.dot Example Rendered GraphicsThe following graphs are from the PyCon-Tech project. PyCon-Tech is a conference management framework based on Django framework. Pycon-Tech ProjectPycon-Tech Project Overview With Grouping |
► Sign in to add a comment


For google to find this: this is a python database schema visualization solution.
working link to pygraphviz
For pygraphviz on Ubuntu:
sudo apt-get install graphviz-dev; sudo apt-get install python-pygraphviz
I had trouble getting this to work in OS X Leopard, finally found this solution which did:
http://magicrebirth.wordpress.com/2009/10/14/installing-pygraphviz-tested-on-osx-leopard/
I'd like to not output columns types and to exclude some Models. Looks it's not supported, right?
Anyone know of a graphviz gui editor, something that can just move nodes around is all I want. I tried dotty which seems to be a tool for creating random boxes all over my graph.
Would be awesome if the output was a true UML class diagram. Or at least, if generalization relations were represented with that notation (white-filled triangle arrow).
To use pygraphviz in a virtual env, use venv-dependencies to link it. Like: sudo apt-get install graphviz-dev; sudo apt-get install python-pygraphviz sudo pip install venv-dependencies
then in the virtual-env do:
link_venv.py "pygraphviz" And it'ts ready to go.
https://github.com/arruda/venv-dependencies
Thought this might help others:
I wanted to graph one of my django apps, so I used this syntax:
python manage.py graph_models myapp > myapp.dot
And I used this line to convert it into a PNG:
dot -Tpng myapp.dot > myapp.png
Hi is anybody had GeoDjango? class diagram?