2👍
✅
Django adds a table to your database to manage what has been migrated. You can see the table django_migrations
. You are in the situation that you deleted the table yourself, while the entry for it’s migration was left in django_migrations
. To fix this the simplest way would be to fake a migration to zero:
python manage.py migrate --fake products zero
-1👍
I had this problem too. I notice that my ALL my files were not saved. After turning on VSCODE Auto Save, my migrations worked.
- [Answered ]-Per instance dynamic fields django model
- [Answered ]-The requested URL was not found on this server. Django
- [Answered ]-Django queryset hide value of object
- [Answered ]-Is it possible to filter Django objects by a list of dictionaries?
- [Answered ]-Wsgi.py error after migrating GAE app to Python 2.7
Source:stackexchange.com