summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-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``
------------------