Opened 16 years ago

Closed 16 years ago

#10162 closed (duplicate)

Tutorial part 2 has wrong instructions for enabling admin

Reported by: Andy Dustman Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

http://docs.djangoproject.com/en/dev/intro/tutorial02/#activate-the-admin-site has this snippet:

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),

After creating a new project and inspecting the new default urls.py, I find it should be:

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.root)),

i.e. change urls to root.

New users doing what the tutorial tells them probably would never see this; if they uncomment the line as it tells them, it just works. I found this converting an old 0.96 project to 1.02 and going through the tutorial as a refresher.

Change History (1)

comment:1 by anonymous, 16 years ago

Resolution: duplicate
Status: newclosed

#10050 already reports this. Problem is the doc online is really the latest development doc, and that has recently changed. For people using 1.0.X we need to get a copy of the 1.0.X docs online.

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