Delete all tables in the database
Delete all files in the project's migrations folder, except for the __init__.py file.
Run command
python makemigrations
python migrate
Additional knowledge:python django data creation, update, delete
Remember to follow me.
Django framework has helped us to do a lot of things, today we will look at the database creation, update, delete operation statements.
Above this use Django to empty the database and regenerate is all I have shared with you, I hope to be able to give you a reference, and I hope you support me more.