Skip to content

Instantly share code, notes, and snippets.

@cecepm
Created May 24, 2013 03:07
Show Gist options
  • Select an option

  • Save cecepm/5641044 to your computer and use it in GitHub Desktop.

Select an option

Save cecepm/5641044 to your computer and use it in GitHub Desktop.
Using south on existing django apps

Using south on existing django apps

Initial convert

On one of your django instance

./manage.py syncdb
./manage.py convert_to_south <app_name>

To apply on another django instance (other development env or on production server)

./manage.py migrate <app_name> 0001 --fake

Change on models.py

On one of your django instance

./manage.py schemamigration <app_name> --auto
./manage.py migrate <app>

To apply on another django instance (other development env or on production server)

./manage.py migrate <app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment