From bf6392bb7565c21f01ed6f682b8558dcf1cc8070 Mon Sep 17 00:00:00 2001 From: jpic Date: Tue, 13 Dec 2016 01:36:08 +0100 Subject: Fixed #27600 -- Suppressed the REPL during shell's reading from stdin. Thanks Adam Chainz for review and guidance. --- docs/ref/django-admin.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs') diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index c35e728f26..7a77f4d1e7 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -979,6 +979,22 @@ Lets you pass a command as a string to execute it as Django, like so:: django-admin shell --command="import django; print(django.__version__)" +You can also pass code in on standard input to execute it. For example: + +.. code-block:: console + + $ django-admin shell < import django + > print(django.__version__) + > EOF + +On Windows, the REPL is output due to implementation limits of +:func:`select.select` on that platform. + +.. versionchanged:: 1.11 + + In older versions, the REPL is also output on UNIX systems. + ``showmigrations`` ------------------ -- cgit v1.3