diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2015-12-13 11:33:39 -0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-12-22 08:22:12 -0500 |
| commit | f1628f6be1b8113b5e53aea497b2f6c47180e83f (patch) | |
| tree | c63f7ba785cf3f97fd4e1055aed09014c3360974 /docs/ref | |
| parent | b10f66831ba2fc68901bc674104a76eb112ee52a (diff) | |
Fixed #25838 -- Added "python" as an interface to the shell command.
Deprecates the "--plain" option.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/django-admin.txt | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index d7798e559a..31da49cfc5 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -933,9 +933,15 @@ Starts the Python interactive interpreter. Django will use IPython_ or bpython_ if either is installed. If you have a rich shell installed but want to force use of the "plain" Python interpreter, -use the ``--plain`` option, like so:: +use the ``-i python`` or ``--interface python`` option, like so:: - django-admin shell --plain + django-admin shell -i python + django-admin shell --interface python + +.. deprecated:: 1.10 + + In older versions, use the ``--plain`` option. This is deprecated and will + be removed in Django 2.0. If you would like to specify either IPython or bpython as your interpreter if you have both installed you can specify an alternative interpreter interface @@ -957,12 +963,12 @@ bpython:: .. _bpython: http://bpython-interpreter.org/ When the "plain" Python interactive interpreter starts (be it because -``--plain`` was specified or because no other interactive interface is -available) it reads the script pointed to by the :envvar:`PYTHONSTARTUP` +``--interface python`` was specified or because no other interactive interface +is available) it reads the script pointed to by the :envvar:`PYTHONSTARTUP` environment variable and the ``~/.pythonrc.py`` script. If you don't wish this behavior you can use the ``--no-startup`` option. e.g.:: - django-admin shell --plain --no-startup + django-admin shell --interface python --no-startup showmigrations [<app_label> [<app_label>]] ------------------------------------------ |
