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.
アプリに 2 つの変更されたモデルがありますが、1 つのモデルのみの移行を作成し、もう 1 つのモデルは無視したいと考えています。
./manage.py schemamigration app --auto
指図?
移行を作成するには、さまざまな方法があります。しかし、ここでは 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