Thursday, August 30, 2012

Graph of App Model Django


Generate App Model diagram/graph of you Django app -


Its really powerful -  here is the quick guide on the commands you can use with Django-extensions: http://ericholscher.com/blog/2008/sep/12/screencast-django-command-extensions/

To generate the model, follow below installation steps –

sudo pip install django-extensions


another alternative to get it install using below command

brew install graphviz

(graphviz is graph visualization open source software by AT&T) 

sudo pip install pygraphviz

add Django-extensions in settings file of your project

INSTALLED_APPS = (    
                                              ...    
                                              'django_extensions',
                                         )

And you are ready to get app model graph, run following command,

$ ./manage.py graph_models -a -g -o my_project_visualized.png

Bingo!

No comments:

Post a Comment