Issues:
I want to recreate the migrations, so I deleted files under migrations folder, and drop the database. And try this python manage.py makemigrations
, it reponse No changes detected
.
Fix:
Create the database again, and clear files and folders under migrations, then try the following:
python manage.py makemigrations --empty appname
python manage.py makemigrations
python manage.py migrate
It works!