First make sure you install south and add to your apps in settings.py.
"South is an intelligent schema and data migrations for Django projects."
So after you have created your app and added some fields, you decided to add a new field.
First you have to make sure that your app is already converted to south, if not just run:
./manage.py convert_to_south appThen everytime you make a change in your models just:
./manage.py schemamigration app --auto
./manage.py migrate app
To undo the migration or change a field just
python manage.py migrate profiles 0025
- Soft matched migration 0025 to 0025_auto__add_field_locumprofile_one_line_description.
Running migrations for profiles:
- Migrating backwards to just after 0025_auto__add_field_locumprofile_one_line_description.
then delete the migration file 0026
change the model
Thats it, simple!!