this problem actually occurs if one of the cases:
1) You did "schemamigration app_name --initial" after one of them "--auto" 2) You interrupted the last migration that you did.
To solve this problem, you apply the following:
1) mark the last migration of the circuit as false.
python manage.py schemamigration app_name --fake
Note. Make sure that the layout of the models is similar to the layout of tables in the database.
2) apply the migration again by doing
python manage.py schemamigration app_Name --auto python manage.py migrate app-Name
Note. Sometimes you can manually add a specific field that you have already added using the following syntax.
python manage.py schemamigration app_name --add-field My_model.added_field
More details. regarding the south, you can check its documentation here .
msoliman
source share