#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.