mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #11745 -- Grouped commands by application in the output of manage.py help. Made 'version' consistent with 'help' while I was in the area, and added tests. Thanks Jannis for the feedback and review.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17462 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -47,11 +47,16 @@ for the given command.
|
||||
Getting runtime help
|
||||
--------------------
|
||||
|
||||
.. django-admin-option:: --help
|
||||
.. django-admin:: help
|
||||
|
||||
Run ``django-admin.py help`` to display a list of all available commands.
|
||||
Run ``django-admin.py help <command>`` to display a description of the
|
||||
given command and a list of its available options.
|
||||
Run ``django-admin.py help`` to display usage information and a list of the
|
||||
commands provided by each application.
|
||||
|
||||
Run ``django-admin.py help --commands`` to display a list of all available
|
||||
commands.
|
||||
|
||||
Run ``django-admin.py help <command>`` to display a description of the given
|
||||
command and a list of its available options.
|
||||
|
||||
App names
|
||||
---------
|
||||
@@ -63,9 +68,9 @@ contains the string ``'mysite.blog'``, the app name is ``blog``.
|
||||
Determining the version
|
||||
-----------------------
|
||||
|
||||
.. django-admin-option:: --version
|
||||
.. django-admin:: version
|
||||
|
||||
Run ``django-admin.py --version`` to display the current Django version.
|
||||
Run ``django-admin.py version`` to display the current Django version.
|
||||
|
||||
Examples of output::
|
||||
|
||||
|
||||
@@ -989,6 +989,14 @@ after tests' execution, then you can restore the previous behavior by
|
||||
subclassing ``DjangoTestRunner`` and overriding its ``teardown_databases()``
|
||||
method.
|
||||
|
||||
Output of :djadmin:`manage.py help <help>`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
:djadmin:`manage.py help <help>` now groups available commands by application.
|
||||
If you depended on its output, for instance if you parsed it, you must update
|
||||
your scripts. To obtain the list of all available management commands in a
|
||||
script, you can use :djadmin:`manage.py help --commands <help>` instead.
|
||||
|
||||
Features deprecated in 1.4
|
||||
==========================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user