Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
South cheatsheet

South

Initial app migration

./manage.py schemamigration myapp --initial

Common migrations

./manage.py schemamigration myapp --auto
./manage.py migrate myapp

Update most recent migration

./manage.py schemamigration myapp --auto --update
./manage.py migrate myapp

List all migrations

./manage.py migrate --list

List migrations from a single app

./manage.py migrate myapp --list

List applied migrations only

./manage.py migrate --list | grep -v "*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment