Home > OS >  My django code is requesting a table that doesn't exist
My django code is requesting a table that doesn't exist

Time:03-31

enter image description here

enter image description here

I tried to delete the 'db.sqlite3' file and do the migration again, but it didn't work

CodePudding user response:

If you made changes to your model, you need to run python manage.py makemigrations. If this is a new project that you have never deployed to production, you can delete the migrations folder before running this command.

Then run python manage.py migrate.

  • Related