manage.py runserver only respects python -u flag if --noreload is present (-u flag forces streams to be unbuffered)
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 are called with the very same flag.
Change History
(7)
Description: |
modified (diff)
|
Component: |
Uncategorized → Core (Management commands)
|
Triage Stage: |
Unreviewed → Accepted
|
Version: |
5.1 → dev
|
Owner: |
set to myoungjinGo
|
Status: |
new → assigned
|
Owner: |
myoungjinGo removed
|
Status: |
assigned → new
|
Owner: |
set to JaeHyuckSa
|
Status: |
new → assigned
|
Thank you, replicated