Opened 8 years ago

Closed 8 years ago

#14847 closed (worksforme)

dumpdata sends output to stderr, not stdout

Reported by: anonymous Owned by: nobody
Component: Uncategorized Version: 1.2
Severity: Keywords: datadump
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


According to the documentation here: ,
dumpdata "Outputs to standard output all data in the database associated with the named application(s)." However, it looks like it actually outputs to stderr, not stdout. Please see

Change History (1)

comment:1 Changed 8 years ago by Ramiro Morales

Resolution: worksforme
Status: newclosed

Reviewing the code history for the dumpdata management command and the base command in general shows the output of the commands (the value returned from the handle method()) is sent explicitly to stdout.

Additionally, just tested this with the same invocation used by the OP of the SO discussion and Django 1.2.3. The JSON output is correctly sent to stdout.

Perhaps there is any additional detail about the environment where these tests were made?

Note: See TracTickets for help on using tickets.
Back to Top