Graphviz Model Diagrams

2 views
Skip to first unread message

Andrew

unread,
Jul 17, 2006, 4:34:26 PM7/17/06
to Django users
I started a simple little app to display a Graphviz diagram based off
the Django models.

It's simple and not so purty, but it's a start. It also requires
graphviz to be installed and in the path.

http://www.exit66.com/diagram.zip

Install to to your Django server like any other app and the url will
then be http://localhost/diagram/<app name>.

Any suggestions are welcome.

Jeremy Dunck

unread,
Jul 17, 2006, 5:07:54 PM7/17/06
to django...@googlegroups.com
On 7/17/06, Andrew <andyb...@gmail.com> wrote:
> I started a simple little app to display a Graphviz diagram based off
> the Django models.
>
> It's simple and not so purty, but it's a start. It also requires
> graphviz to be installed and in the path.

You might a settings option to specify the graphviz path. Fall back
to assuming it's already there if the setting isn't available.

Sorta like JING_PATH:
http://www.djangoproject.com/documentation/settings/#jing-path

If you're intending for this to be used outside of development, stash
the results of dot generation in cache. Maybe have a url parm that
invalidates the cache for the rare non-dev model changes.

Anyway, nice. :)

Reply all
Reply to author
Forward
0 new messages