执行
python manage.py migrate
报错误
Your models have changes that are not yet reflected in a migration, and so won't be applied. Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
这个错误是因为你的数据库文件更改需要更新一下
先执行下
python manage.py
makemigrations
在执行
python manage.py migrate
就可以成功执行了
dhango错误Your models have changes that are not yet reflected in a migration,
最新推荐文章于 2024-05-21 14:29:46 发布