Question

I am developing a Django app that can be installed via pip for use within a larger project. I have DB models in this app. I plan to use South in case I need to do any migrations in future versions.

Should I make South an install requirement and then have the user manually run migration(s) or should I do it automatically in the setup.py?

Was it helpful?

Solution

Running migrations is a part of an application setup/startup routine, in my opinion it is out of the scope of installation.

OTHER TIPS

If I was the user, I prefer one setup script can figure everything out. And it is not a complex function, why not do it automatically.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top