Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#10855 closed (fixed)

tutorial doesn't give sufficient warning about superuser account or there should be a default login

Reported by: cwolf127 Owned by: nobody
Component: Documentation Version: master
Severity: Keywords: superuser admin
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

After a few day's break, I resumed the tutorial, starting on the second
installment at:
http://docs.djangoproject.com/en/dev/intro/tutorial02/

Whereupon, I run into this instruction:

    "Now, try logging in. (You created a superuser account in the first part of this tutorial, remember?)"

Well, no, I don't - yes it's my fault for not writing it down, but this is just a
tutorial, so why doesn't the admin app have a default login?

Going back to tutorial-1, the only thing it says about the superuser account
is this:

    "...and you'll get a prompt asking you if you'd like to create a superuser account for the authentication system. Go ahead and do that."

I think there should be a warning for absent-minded programmers that there IS NO WAY to
recover the superuser password.

This FAQ did not help for this issue:

FAQ: Invalid Login

I tried poking around in the database for this information, and fortunately, (from a
security perspective) found there's no way to get the superuser password.

The only recourse I can see is to nuke the tutorial site and start all over again
from the beginning.

Attachments (1)

10855.diff (1.0 KB) - added by timo 6 years ago.
linking to how to create another superuser as suggested

Download all attachments as: .zip

Change History (7)

comment:1 Changed 6 years ago by cwolf127

  • Component changed from Uncategorized to Documentation
  • Keywords superuser admin added
  • Needs documentation set
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 6 years ago by cwolf127

I was able to rescue my tutorial site by creating a new superuser, as described on this page:
http://docs.djangoproject.com/en/dev/topics/auth/#creating-superusers

I recommend adding this to the Tutorial-2 page where it tauntingly says:

"Now, try logging in. (You created a superuser account in the first part of this tutorial, remember?)"

Changed 6 years ago by timo

linking to how to create another superuser as suggested

comment:3 Changed 6 years ago by timo

  • Has patch set
  • Needs documentation unset
  • Triage Stage changed from Unreviewed to Ready for checkin
  • Version changed from 1.0 to SVN

comment:4 Changed 6 years ago by gsong

  • Summary changed from tutorial doesn't give sufficient waring about superuser account or there should be a default login to tutorial doesn't give sufficient warning about superuser account or there should be a default login

comment:5 Changed 6 years ago by kmtracey

  • Resolution set to fixed
  • Status changed from new to closed

(In [10810]) Fixed #10855: Reference doc on creating superusers in the tutorial at the point where an account is needed, so that readers who neglected to create one earlier (or who forgot the password) don't get stuck or think they have to start all over. Thanks cwolf127 and timo.

comment:6 Changed 6 years ago by kmtracey

(In [10811]) [1.0.X] Fixed #10855: Reference doc on creating superusers in the tutorial at the point where an account is needed, so that readers who neglected to create one earlier (or who forgot the password) don't get stuck or think they have to start all over. Thanks cwolf127 and timo.

r10810 from trunk.

Note: See TracTickets for help on using tickets.
Back to Top