[Django]-Change the location of models.py with south

5👍

With a couple of steps, I did it.

  1. First I changed the south migration table manually to set app_name to the new app_name

  2. then I went across all the current migrations .py files and changes all the ocurrencies of the old folder to the new one.

  3. Also, still in the .py migration files, I made sure that all complete_apps = [‘OLD_APP_NAME’] was changed to complete_apps = [‘NEW_APP_NAME’] as well.

  4. Ran the schemamigration normally like the models.py has always been there.

Leave a comment