Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在一个应用程序中有两个更改的模型,但是我想只为一个模型创建迁移而忽略另一个模型,这是否可以使用
./manage.py schemamigration app --auto
命令?
有很多方法可以创建迁移。但我只会定义两种方式。
//migrate the changes of all models of the app ./manage.py schemamigration app --auto //migrate only the changes of the given model or 1 model python manage.py schemamigration app_name extend_modelname --auto