#36434: manage.py runserver only respects python -u flag if --noreload is
present
(-u flag forces streams to be unbuffered)
-------------------------------------+-------------------------------------
Reporter: Ivanca | Owner: (none)
Type: Bug | Status: new
Component: Uncategorized | Version: 5.1
Severity: Normal | Resolution:
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
-------------------------------------+-------------------------------------
Description changed by Ivanca:
Old description:
> 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.
New description:
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.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/36434#comment:1>
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/0107019737673334-d237e526-c0ad-4e07-86f3-87e06c54fbe6-000000%40eu-central-1.amazonses.com.