manage.py loaddata should have better error reporting
|Reported by:||bugs@…||Owned by:||dakrauth|
|Severity:||Keywords:||manage.py loaddata dumpdata|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When dumping database with
python manage.py --format=xml dumpdata > dump.xml
I'd like to migrate to another one and load data back. However, I perhaps have some inconsistency, so I got
python manage.py loaddata dump.xml Loading 'dump' fixtures... Installing xml fixture 'dump' from absolute path. Problem installing fixture 'dump.xml': WikiObject matching query does not exist.
I have to fix it manually, however I have no idea which query failed and with FK I have to fix (or obect to delete etc.) (and yes, I have no idea when this inconsistency started).
loaddata should display on which object this query failed.
Change History (10)
comment:1 Changed 9 years ago by Simon G. <dev@…>
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Design decision needed