42
You can use django-extensions app for generating model visualisations.
setting.py
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'...',
'django_extensions',
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
)
Give this command in terminal
python manage.py graph_models -a -o myapp_models.png
This will generate a png file named myapp_models.png. It will have visualised image of the models. More documentation can be found here.
33
Here you can find a list of Python-to-UML tools. The one called GraphModels in django-extensions (PyPI) may cover what youโre looking for.
- [Django]-Pypi see older versions of package
- [Django]-Get the list of checkbox post in django views
- [Django]-What is the advantage of Class-Based views?
8
Iโve stumbled upon this problem today and I found django-dia. It looks good, if you like Dia!
- [Django]-Django model blank=False does not work?
- [Django]-One app with many models vs. many apps with single model
- [Django]-How to use Django ImageField, and why use it at all?
0
You can use django-extension for generating the app models i.e database. and also you can generate UML generating applications.
- [Django]-How to use the 'reverse' of a Django ManyToMany relationship?
- [Django]-Django: sqlite for dev, mysql for prod?
- [Django]-Cannot import name _uuid_generate_random in heroku django
Source:stackexchange.com