summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2008-06-08 05:31:16 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2008-06-08 05:31:16 +0000
commit5675ae4443ae07325c97c70e4f951e1d6b06c2d3 (patch)
treecc3f952a685733abcd8ddde842f9bfc51c44df45 /docs
parent8d4f79a799136edf8190c357e3e0497d7db3ad77 (diff)
Fixed #5614: added 'manage.py createsuperuser'. Thanks, programmerq.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7590 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/authentication.txt21
1 files changed, 16 insertions, 5 deletions
diff --git a/docs/authentication.txt b/docs/authentication.txt
index 79eaf673e7..8c5f5b7c3f 100644
--- a/docs/authentication.txt
+++ b/docs/authentication.txt
@@ -263,14 +263,25 @@ Creating superusers
-------------------
``manage.py syncdb`` prompts you to create a superuser the first time you run
-it after adding ``'django.contrib.auth'`` to your ``INSTALLED_APPS``. But if
-you need to create a superuser after that via the command line, you can use the
-``create_superuser.py`` utility. Just run this command::
+it after adding ``'django.contrib.auth'`` to your ``INSTALLED_APPS``. If you need
+to create a superuser at a later date, you can use a command line utility.
+
+**New in Django development version.**::
+
+ manage.py createsuperuser --username=joe --email=joe@example.com
+
+You will be prompted for a password. Once entered, the user is created. If you
+leave off the ``--username`` or the ``--email`` option, It will prompt you for
+those values as well.
+
+If you're using an older release of Django, the old way of creating a superuser
+on the command line still works::
python /path/to/django/contrib/auth/create_superuser.py
-Make sure to substitute ``/path/to/`` with the path to the Django codebase on
-your filesystem.
+Where ``/path/to`` is the path to the Django codebase on your filesystem. The
+``manage.py`` command is prefered since it'll figure out the correct path and
+environment for you.
Storing additional information about users
------------------------------------------