1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #25680 -- Added django-admin shell --command option.

Add a -c option to the shell command to execute a command passed as a
string as Django.
This commit is contained in:
Niels Van Och
2015-11-07 12:07:28 +01:00
committed by Tim Graham
parent 0cc32a8f97
commit 7f7553dd30
5 changed files with 38 additions and 0 deletions

View File

@@ -224,6 +224,9 @@ Management Commands
* The :djadmin:`shell` ``--interface`` option now accepts ``python`` to force
use of the "plain" Python interpreter.
* The new :djadminopt:`shell --command <--command>` option lets you run a
command as Django and exit, instead of opening the interactive shell.
Migrations
^^^^^^^^^^