Skip to content

Instantly share code, notes, and snippets.

@mrchilds
Created July 16, 2012 07:58
Show Gist options
  • Save mrchilds/3121438 to your computer and use it in GitHub Desktop.
Save mrchilds/3121438 to your computer and use it in GitHub Desktop.
Django South - Quick Help
# Convert Existing App
$ python manage.py convert_to_south APP_NAME --settings settings_debug
# Perform model change on development
$ python manage.py schemamigration APP_NAME --auto --settings settings_debug
$ python manage.py migrate APP_NAME --settings settings_debug.py
# Perform change on live server (assumes migration was applied and checked in on development)
$ python manage.py migrate APP_NAME 0001 --fake
$ python manage.py migrate APP_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment