gpt4 book ai didi

python - 没有要申请的迁移

转载 作者:太空宇宙 更新时间:2023-11-04 09:00:45 26 4
gpt4 key购买 nike

$python manage.py syncdb
Operations to perform:
Apply all migrations: admin, contenttypes, auth, sessions
Running migrations:
No migrations to apply.
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.

错误打印屏幕

enter image description here

不知道是什么问题!

最佳答案

正如命令行输出所说,问题是您更改了模型。解决方案是运行 python manage.py makemigrations,然后运行 ​​python manage.py migrate

关于python - 没有要申请的迁移,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25714172/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com