Organizing models into separate Django app structures can enhance project maintainability and structure. While previous attempts using South may have proved difficult, Django 1.7's migration system offers a seamless solution.
Using migrations.SeparateDatabaseAndState allows you to concurrently modify the database and update the state of the model:
Removing from the Old App:
Adding to the New App:
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3