3

models.py の場所を別のアプリのディレクトリに変更しました。そして今、南を使用して移行を行うと、次のように表示されます。

D:\logos-education-system>manage.py schemamigration core --auto
You cannot use automatic detection, since the previous migration does not have t
his whole app frozen.
Either make migrations using '--freeze core' or set 'SOUTH_AUTO_FREEZE_APP = Tru
e' in your settings.py.

D:\logos-education-system>

どういうわけか、South は models.py (新しいフォルダー内) を既にデータベースにあるデータと関連付けることができず、そこから続行することができません。

それで、私の質問は次のとおりです。南がmodels.pyが入っていた古いフォルダーを忘れて、南が常にそこにあったと思うような方法で新しいフォルダーを使用するにはどうすればよいですか?

前もって感謝します。

4

1 に答える 1