#26190: Return final management command result from call_command
-------------------------------------+-------------------------------------
     Reporter:  claudep              |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Core (Management     |                  Version:  master
  commands)                          |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by claudep):

 Only the return value of the command `handle()` method would be returned
 from `call_command`.

 In the current Django commands, only the following are returning some
 content: diffsettings, sqlflush, sqlmigrate, sqlsequencereset,
 changepassword (success message), findstatic. Other commands are calling
 `self.stdout.write` during the processing of the command.

 To get all the content output by a command, you still have to provide a
 catcher in the sdtout argument as you mentioned.

--
Ticket URL: <https://code.djangoproject.com/ticket/26190#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.06b5e774310e2ab21e0326e3a4cdca32%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to