#36434: manage.py runserver only respects python -u flag if --noreload is 
present
(-u flag forces streams to be unbuffered)
-------------------------------------+-------------------------------------
     Reporter:  Ivanca               |                     Type:  Bug
       Status:  new                  |                Component:
                                     |  Uncategorized
      Version:  5.1                  |                 Severity:  Normal
     Keywords:  runserver, -u,       |             Triage Stage:
  PYTHONUNBUFFERED                   |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
 From python help:

 {{{
 -u     : force the stdout and stderr streams to be unbuffered;
          this option has no effect on stdin; also PYTHONUNBUFFERED=x

 }}}

 Running **manage.py runserver** only respects python -u flag if --noreload
 is present, meanwhile setting the environment variable PYTHONUNBUFFERED=1
 works fine.

 The solution is likely to make sure subprocesses to be called with the
 very same flag.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36434>
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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/010701973765ded9-d95dca54-6be2-400a-957c-ae08682d7930-000000%40eu-central-1.amazonses.com.

Reply via email to