Generate App Model diagram/graph of you Django app -
Use Django-extensions tool - https://github.com/django-extensions/django-extensions
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
Get graphviz from - http://www.graphviz.org/Download..php
another alternative to get it install using below command
brew install graphviz
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