Install the pip package locally or globally:
pip install [--user] django-migration-vis
Enable the Django management command by extending your Django project settings:
INSTALLED_APPS += ("django_migration_vis", )
python manage.py visualizemigrations \
--comment 'captions for the picture' \
example.gv