My favorites | Sign in
Project Logo
             
Search
for
Updated May 01, 2008 by v.oostveen
Labels: Phase-Implementation, Phase-Deploy
GraphModels  
Renders a graphical overview of your project or specified apps.

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 Usage

With 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 Graphics

The following graphs are from the PyCon-Tech project. PyCon-Tech is a conference management framework based on Django framework.

Pycon-Tech Project

Big-Image

Pycon-Tech Project Overview With Grouping

Big-Image


Comment by bsrini, Dec 17, 2008

For google to find this: this is a python database schema visualization solution.

Comment by thomas.cr, Feb 12, 2009

working link to pygraphviz


Sign in to add a comment
Hosted by Google Code