django/django — pull request #651 by chroto (2013-01-15 14:31:49+00:00)
Title: Adds flushing of stdout and stderr after writes

Because output is written without ever closing the fds until sys.exit is
called after a `KeyboardInterrupt` exception, it is difficult to read
stdin or stdout from a parent process that may spawn a development
server subprocess.

https://code.djangoproject.com/ticket/19593