最近在学习django的时候,执行执行python manage.py makemigrations提示No changes detected:
执行python manage.py makemigrations提示No changes detected
造成这个问题的原因是因为你项目当中没有对子应用进行注册,需要到项目settings文件中进行注册一下就可以了
执行python manage.py makemigrations提示No changes detected
注册完成后,再重新执行python manage.py makemigrations 生成迁移文件,然后执行python manage.py migrate 同步到数据库中

相关文章: