Using graph_models and inspectdb

45 views
Skip to first unread message

johntynan

unread,
Dec 22, 2008, 2:00:34 PM12/22/08
to Django Newsroom
I just published a blog post outlining my experience using inspectdb
to import the data model from SQLite into django here:

http://opensourcebroadcasting.blogspot.com/2008/12/defining-data-model-for-django.html

This also highlights the use of django-command-extensions'
graph_models command to output the database model to a spiffy png
image file.

Many thanks to Milan for his suggestions.

Hacker Scot

unread,
Dec 23, 2008, 11:25:07 AM12/23/08
to django-...@googlegroups.com
On Dec 22, 2008, at 11:00 AM, johntynan wrote:

>
> I just published a blog post outlining my experience using inspectdb
> to import the data model from SQLite into django here:
>
> http://opensourcebroadcasting.blogspot.com/2008/12/defining-data-model-for-django.html
>
> This also highlights the use of django-command-extensions'
> graph_models command to output the database model to a spiffy png
> image file.

Very cool John. Thanks for the kick in the butt. I've been meaning to
try out the command extensions, and graph_model in particular, and
finally did after reading your post. Here's my own experiment with it: http://birdhouse.org/blog/2008/12/23/django-and-graphviz/
. The PNGs it generates by default are crap, but if you output
to .dot format and open that with the Graphviz GUI, you can get
beautiful vector output to PDF. Thanks for that.

./s

--
>>> Birdhouse Hosting <<<
Custom web and mail hosting services
http://hosting.birdhouse.org

johntynan

unread,
Dec 23, 2008, 6:25:43 PM12/23/08
to Django Newsroom
Hi Scot!

Glad you found the post inspiring! Glad too to see you were able to
wrangle the install together.

I appreciate your pointing out the need for saving the file with a
higher resolution.

Thanks too for pointing out the shortcomings of this export.

I'm going to check to see if the GUI Graphviz app will allow you to
edit the file so that these shortcomings can be rounded out.

Keep us posted about your work with django-command-extensions.

Thanks!

John T.

On Dec 23, 9:25 am, Hacker Scot <shac...@birdhouse.org> wrote:
> On Dec 22, 2008, at 11:00 AM, johntynan wrote:
>
>
>
> > I just published a blog post outlining my experience using inspectdb
> > to import the data model from SQLite into django here:
>
> >http://opensourcebroadcasting.blogspot.com/2008/12/defining-data-mode...
Reply all
Reply to author
Forward
0 new messages