1

アプリに 2 つの変更されたモデルがありますが、1 つのモデルのみの移行を作成し、もう 1 つのモデルは無視したいと考えています。

./manage.py schemamigration app --auto 

指図?

4

1 に答える 1

2

移行を作成するには、さまざまな方法があります。しかし、ここでは 2 つの方法だけを定義します。

 //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
于 2013-03-05T12:02:44.400 に答える