Is it possible to generate a diagram of an entire Django webapp? [closed]

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.

Leave a Comment

tech