Make modern versions of our old backup/load scripts.
Review Request #2669 — Created Oct. 22, 2011 and submitted
Make modern versions of our old backup/load scripts. The DB backup/load scripts are still around, but don't cover all models. It's worth fixing up, since they can be useful when moving from sqlite to something else. They've been moved to be management commands now. This will be made available to 1.6.
Did some sample backups and loads of my DB. I think it got everything.
Description | From | Last Updated |
---|---|---|
This should point out that it dumps to stdout. |
david | |
This should be a list comprehension: models = [get_models(app) for app in get_apps()] |
david | |
It would be nice to only count these once. counts = [model.objects.count() for model in models] for model, count in … |
david | |
Doesn't need ()s |
david | |
These can be combined |
david |