In Django, is there an easy way to check whether all database migrations have been run? I\'ve found manage.py migrate --list, which gives me the information I want,
manage.py migrate --list
3.1 release notes
The new migrate --check option makes the command exit with a non-zero status when unapplied migrations are detected.
https://docs.djangoproject.com/en/3.1/ref/django-admin/#cmdoption-migrate-check
so finally we can
python manage.py migrate --check