Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django migrations--is it possible to use South in the middle of the project?

I already started a project, and the models are all synced and everything.

like image 457
TIMEX Avatar asked Mar 15 '10 08:03

TIMEX


3 Answers

Yes. I think it is not too late. I've moved to south in a middle of a project and I am happy with that choice. I think it is a big help for deployment.

The initialization of the south app can be done at any moment.

like image 82
luc Avatar answered Oct 03 '22 00:10

luc


It's even mentioned in docs:

http://south.aeracode.org/wiki/QuickStartGuide#a1.SetupeveryapplicationtobetrackablebySouth

like image 44
Tomasz Zieliński Avatar answered Oct 03 '22 00:10

Tomasz Zieliński


It's quite straight forward to start using South.

Just follow the installation instructions (don't forget to run syncdb at the end).

Then you can convert the app to south:

./manage.py convert_to_south myapp

Then you can make modifications to your model and do schemamigrations or even do datamigrations.

like image 25
Gezim Avatar answered Oct 03 '22 01:10

Gezim