How to Move a Django Model to Another App
source link: https://hakibenita.com/move-django-model
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
How to Move a Django Model to Another App
In my latest article for RealPython I share three ways to tackle one of the most challenging tasks involving Django migrations: moving a model from one Django app to another.
The article covers some exotic migration operations and many of the built-in migration CLI commands such sqlmigrate
, showmigrations
and sqlsequencereset
. In the article I also demonstrate important migrations concepts such as reversible migrations, migration plans and introspection.
Read "How to Move a Django Model to Another App" on RealPython ≫
How to Move a Django Model to Another AppRecommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK