执行迁移:python manage.py makemigrations appname
报:No changes detected in app ‘appname‘
python manage.py migrate
报No migrations to apply.
检查settle中有app
原因在于model层中的init文件,手动添加一个from .interface import Interface 即执行成功
django在model里面建立表之后执行数据迁移 报错No changes detected No migrations to apply.