No changes detected while running python makemigrations


I want to recreate the migrations, so I deleted files under migrations folder, and drop the database. And try this python makemigrations, it reponse No changes detected.


Create the database again, and clear files and folders under migrations, then try the following:

  1. python makemigrations --empty appname
  2. python makemigrations
  3. python migrate

It works!