2👍
✅
The reason why it didn’t work on your server is that probably on your local machine you had different database …
I would suggest to check what is in your sever database and what’s in the models.py
. When code in models.py
will be equal to your database you can remove all migrations from server. Than simply use South again.
python manage.py schemamigration app --initial
python manage.py migrate app
Source:stackexchange.com