出现 no changes detected
python3 manage.py makemigrations --empty blog # blog就是你的app名字,此处要写成自己的app名字
python3 manage.py makemigrations # 再次正常运行生成迁移文件的命令
python3 manage.py migrate # 同步数据库
出现 ValueError: Related model 'blog.User' cannot be resolved
python manage.py makemigrations --empty blog
python manage.py makemigrations
python manage.py migrate blog
python manage.py migrate