2👍
✅
I had the same error once with my application, though with a minor change: syncdb didn’t throw any errors. But when I tried to access the model, I got that error. Anyway, what fixed it for me was:
python manage.py reset [appname]
python manage.py syncdb
Hopefully it can help you too. If you have any data, you should export it as a JSON, so you don’t lose it with the reset.
Make a fixture (json) with the following command:
mkdir APPName/fixtures
python manage.py dumpdata APPName --format=json > APPName/fixtures/OriginalData.json
Reload the data with syncdb
You can read more about it here: https://code.djangoproject.com/wiki/Fixtures
Source:stackexchange.com