Skip to content

taliraj/django-migrations-tui

Repository files navigation

django-migrations-tui

Manage Django Migrations with a Text-Based UI

Installation

To install, simply use pip:

pip install django-migrations-tui

Quick start

  1. Add django_migrations_tui to your Django project's INSTALLED_APPS.

  2. Run the following command to start the interactive UI.

    python manage.py migrationstui
  3. Utilize the arrow keys for navigation and letter keys to perform actions:

    • v: Change the format of the migration view between list and plan
    • l: Toggle the logs panel
    • m: Run migrate on the selected migration or app
    • f: Run migrate --fake on the selected migration or app
    • r: Run migrate <app name> zero on the selected app
    • s: Run sqlmigrate on the selected migration
    • q: Quit the UI
    • ctrl+\: Search and select migrations by name
    • Additionally, some vim keybindings are supported for navigation, including j, k, ctrl+home, G, ctrl+b and ctrl+f.

Screenshots

Screenshot of django-migrations-tui Screenshot of django-migrations-tui

About

Manage Django Migrations with a Text-Based UI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages