class diagram from models.py

208 views
Skip to first unread message

Juanjo Conti

unread,
May 22, 2008, 6:16:13 PM5/22/08
to django...@googlegroups.com
Several times I tried to generate an UML class diagram from my python
classes. I have used epydoc and the buil-in feature of SPE but the
resulting diagram did not like me.

Is there a way to generate an UML class diagram from models.py? a
stanalone app or command?

Thanks you,
--
Juanjo Conti

M.Ganesh

unread,
May 22, 2008, 9:24:52 PM5/22/08
to django...@googlegroups.com
Try modelviz.py (do a Google search)

Regards Ganesh

Juanjo Conti

unread,
May 23, 2008, 2:48:29 PM5/23/08
to django...@googlegroups.com

Diego Ucha

unread,
May 23, 2008, 4:21:28 PM5/23/08
to Django users
It is not your question, but it may come in handy, in the future, for
you.
The same way you can generate automatically a Class Diagram, you can
also generate an ER Diagram using MySQL Workbench.
First get your CREATE TABLE statements with: python manage.py sqlall.
Then, make your MySQL Workbench generate an ER Diagram with your
statements.

[]s
Diego Ucha


On 23 maio, 15:48, "Juanjo Conti" <jjco...@gmail.com> wrote:
> Thanks:
>
> http://code.google.com/p/django-command-extensions/http://django-command-extensions.googlecode.com/svn/trunk/extensions/...

Juanjo Conti

unread,
May 23, 2008, 4:37:50 PM5/23/08
to django...@googlegroups.com
I am using Postgresql :)

--
Juanjo Conti

Eloi Crespillo

unread,
May 24, 2008, 11:05:42 AM5/24/08
to django...@googlegroups.com
If you are using PostgreSQL, then is still easier to generate diagrams ;)

I'm a happy user of the the excellent command-line utility "PostgreSQL Autodoc":

http://www.rbt.ca/autodoc/

From PostgreSQL Autodoc web page: "This is a utility which will run
through PostgreSQL system tables and returns HTML, Dot, Dia and
DocBook XML which describes the database. The default output may be
changed or new types may be created by altering the Templates which
control the text file formatting. "


2008/5/23 Juanjo Conti <jjc...@gmail.com>:

Reply all
Reply to author
Forward
0 new messages