How to remove south from django project

I set south and tried a few changes using this, which didn't exactly work the way I wanted it to. Fortunately, my data is safe, but locked south. I want to remove the south and use syncdb normally now, how to do this without affecting my data?

+6
source share
4 answers

Remove 'south' from INSTALLED_APPS, remove the south_migrations table from the database.

+10
source

Delete the south with INSTALLED_APPS, remove the south_migrations table from the database.

In addition, you need to remove the Migrations folders from the application folders.

+4
source

What does it mean that your data will be "locked" in the "South"? The data is stored in a database, and the South simply creates a schema for you and transfers it when necessary. If you delete the South, the data will remain the same.

+3
source
Project

is already under development, and then follow these steps.

1> You need to remove the "south" from installed applications

2> Delete all migrations from the migration folder

3> Delete the south_migrations table from the database

After completing the following steps, suppose you want to completely disappear south of your system, and then follow the commands below.

 sudo apt-get remove --auto-remove python-django-south 

The above command will remove the south, taking into account all the dependencies. And to learn more about removing the south .. click this link

+1
source

Source: https://habr.com/ru/post/888886/


All Articles