Write to specified file for dumpdata
|Reported by:||Gwildor Sok||Owned by:||ANUBHAV JOSHI|
|Component:||Core (Management commands)||Version:||master|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
In response of ticket #22251, I'm opening this as a separate issue like requested. You can read the need for this option there, but basically it removes the current need and practice of redirecting the output of the command to a file, which is often done like this:
$ ./manage.py app1 app2 .. --format=json > dump.json
Removing the need to always do this would open up the possibility to add verbosity during the serialization (see #22251 and a new separate ticket for that).
Add an option to specify a file name to write the output to (under the current working directory), and generate one automatically when one is not specific (e.g. "dump_20140312_1337".json/.xml").
Change History (19)
comment:2 Changed 3 years ago by
|Owner:||changed from nobody to ANUBHAV JOSHI|
|Status:||new → assigned|
comment:14 Changed 3 years ago by
|Patch needs improvement:||set|
|Triage Stage:||Ready for checkin → Accepted|