Search code examples
pythondjangodjango-modelsdjango-southdjango-migrations

Is it safe to use Django south for handling migration on big project


From long time i am having migration issues. Each time i am droping my postgres database and creating a new When i add new 3/4 table or a relation or Circular migration happens. Or most of the time some unwanted issue comes in migration. But it's okay as long i am in development phase. But very soon when it will be on production i can't do that. Removing database each time.

I have heard a lot about django-south. But the issue is it's not updated from long time i think last time it was updated December,14(according to it's bitbucket repo).

Now is it a good choice for a project of 2018 ? Or any other 3rd party i can use. I just don't want to take rick writing raw sql each time in production as i am not too good on it as well. So i want to depend on django 100% in migration. Please share you ideas on the migration issue Thanks in advance :)


Solution

  • South was the predecessor of django migrate. It became a part of Django core, so no need to install it.

    If you are having migration issues, you should learn how to fix them, instead of just re-installing. You can edit every single migration file. They are just regular .py files with regular Django functions that do the necessary changes to your tables.

    Read the error message, try to understand what went wrong, and fix the migration file that caused the error. They are numbered and located in projectfolder/appfolder/migrations/.

    I am using migrate all the time and never had an issue that wasn't fixable.