summaryrefslogtreecommitdiff
path: root/docs/intro/tutorial02.txt
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-06-10 12:22:07 -0400
committerTim Graham <timograham@gmail.com>2014-06-10 14:37:37 -0400
commit93d05536fd8179483c725467de8e33454b48a430 (patch)
tree57a0d3ebbd50e3aa9f9c3b6e6678bb84a3ebf3d1 /docs/intro/tutorial02.txt
parenta00b78b1e2ac9bf271d55c1799138a27f5e0d03e (diff)
Fixed #22770 -- Removed create_superuser from post_migrate signals.
Moved logic to syncdb command for backwards compatibility.
Diffstat (limited to 'docs/intro/tutorial02.txt')
-rw-r--r--docs/intro/tutorial02.txt36
1 files changed, 32 insertions, 4 deletions
diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt
index 23f6440ea5..4c5e869f8d 100644
--- a/docs/intro/tutorial02.txt
+++ b/docs/intro/tutorial02.txt
@@ -21,6 +21,37 @@ automatically-generated admin site.
The admin isn't intended to be used by site visitors. It's for site
managers.
+Creating an admin user
+======================
+
+First we'll need to create a user who can login to the admin site. Run the
+following command:
+
+.. code-block:: bash
+
+ $ python manage.py createsuperuser
+
+Enter your desired username and press enter.
+
+.. code-block:: text
+
+ Username: admin
+
+You will then be prompted for your desired email address:
+
+.. code-block:: text
+
+ Email address: admin@example.com
+
+The final step is to enter your password. You will be asked to enter your
+password twice, the second time as a confirmation of the first.
+
+.. code-block:: text
+
+ Password: **********
+ Password (again): *********
+ Superuser created successfully.
+
Start the development server
============================
@@ -59,10 +90,7 @@ browser's settings and on whether Django has a translation for this language.
Enter the admin site
====================
-Now, try logging in. You created a superuser account in the first part of this
-tutorial, remember? If you didn't create one or forgot the password you can
-:ref:`create another one <topics-auth-creating-superusers>`.
-
+Now, try logging in with the superuser account you created in the previous step.
You should see the Django admin index page:
.. image:: _images/admin02.png