Fixes #17327 -- Add --database option to createsuperuser and change password management commands

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17665 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Chris Beaven 2012-03-05 04:17:55 +00:00
parent 7e92ad8506
commit 8c9b032ea0
5 changed files with 137 additions and 8 deletions

View file

@ -1197,6 +1197,12 @@ the user given as parameter. If they both match, the new password will be
changed immediately. If you do not supply a user, the command will attempt to
change the password whose username matches the current user.
.. versionadded:: 1.4
.. django-admin-option:: --database
The ``--database`` option can be used to specify the database to query for the
user. If it is not supplied the ``default`` database will be used.
Example usage::
django-admin.py changepassword ringo
@ -1227,6 +1233,12 @@ using the ``--username`` and ``--email`` arguments on the command
line. If either of those is not supplied, ``createsuperuser`` will prompt for
it when running interactively.
.. versionadded:: 1.4
.. django-admin-option:: --database
The ``--database`` option can be used to specify the database into which the
superuser object will be saved.
``django.contrib.gis``
----------------------