summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorjpic <jamespic@gmail.com>2016-12-13 01:36:08 +0100
committerTim Graham <timograham@gmail.com>2016-12-21 17:05:33 -0500
commitbf6392bb7565c21f01ed6f682b8558dcf1cc8070 (patch)
tree0f124dcbf4c9eb3e10c07415e93aae7478f3fdc1 /docs/ref
parent24fa728a476a6da3e565dbe33959ea62c02c250b (diff)
Fixed #27600 -- Suppressed the REPL during shell's reading from stdin.
Thanks Adam Chainz for review and guidance.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/django-admin.txt16
1 files changed, 16 insertions, 0 deletions
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 <<EOF
+ > 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``
------------------