Here's what I want to do.
Develop a Django project on a development server with a development database. Run the south migrations as necessary when I change the model.
Save the SQL from each migration, and apply those to the production server when I'm ready to deploy.
Is such a thing possible with South? (I'd also be curious what others do to get your development database changes on production when working with Django)
Django and SQL are not replacements for one another, Django is a web framework as a whole, designed to develop web applications, and SQL is a language to query databases.
A QuerySet is a collection of data from a database. A QuerySet is built up as a list of objects. QuerySets makes it easier to get the data you actually need, by allowing you to filter and order the data.
You can at least inspect the sql generated by doing manage.py migrate --db-dry-run --verbosity=2
. This will not do anything to the database and will show all the sql. I would still make a backup though, better safe than sorry.
python manage.py sqlmigrate <app_label> <migration_name>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With