Manage Django Migrations with a Text-Based UI
To install, simply use pip
:
pip install django-migrations-tui
Add
django_migrations_tui
to your Django project'sINSTALLED_APPS
.Run the following command to start the interactive UI.
python manage.py migrationstui
Utilize the arrow keys for navigation and letter keys to perform actions:
v
: Change the format of the migration view betweenlist
andplan
l
: Toggle the logs panelm
: Runmigrate
on the selected migration or appf
: Runmigrate --fake
on the selected migration or appr
: Runmigrate <app name> zero
on the selected apps
: Runsqlmigrate
on the selected migrationq
: Quit the UIctrl+\
: Search and select migrations by name- Additionally, some vim keybindings are supported for navigation, including
j
,k
,ctrl+home
,G
,ctrl+b
andctrl+f
.