I wanted to clear out a table in my DB, so I dropped the table. Normally I would do manage.py syncdb
to re-create it. However, the answer here says not to use syncdb
anymore. So, what do I do instead?
It's a pretty late response but for people who will run into the same issue (like I did).
Normally to drop the db_tables for the app that is managed by south you should use:
python manage.py migrate appname zero
But if you dropped them manually in the db let south know about it
python manage.py migrate appname zero --fake
And of course to recreate the tables
python manage.py migrate appname
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With