dumpdata error message should note pyyaml requirement
|Reported by:||Owned by:||berto|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When trying to dumping some data to yaml, if pyyaml is not installed, one gets the following error message:
$ ./manage-dev dumpdata --indent=2 --format=yaml auth
Error: Unknown serialization format: yaml
It would be very helpful, if the error message would mention the lack of pyyaml, for example by saying:
"Error: Unknown serialization format: yaml (you need to install PyYAML perhaps?)"
Also, the PyYAML requirement should be mentioned on the http://docs.djangoproject.com/en/dev/howto/initial-data/ page, as well.
The point is that although the need for pyyaml is mentioned on the "Serializing Django objects" page, when one uses the documentation as a reference, one might miss that page resulting in some head-scratching as to how come yaml doesn't work even though the documentation claims it does.
Change History (13)
comment:8 Changed 4 years ago by
|Component:||Documentation → Core (Serialization)|
|Status:||closed → new|