Code

#20341 closed Uncategorized (invalid)

no mention of urls.py in "writing your first django app, part 1'

Reported by: eathankeyboards@… Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal 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

I had a great deal of trouble getting into part two because the page did not show up requesting username and password. It took me some time but I found out you have to edit the urls.py file. I did not see any mention of this in the tutorial.

Attachments (0)

Change History (1)

comment:1 Changed 15 months ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

There is no need to introduce the URL mapper for the concepts introduced in part one of the tutorial, hence there is no need to munge with the urls.py file in such document.

I'm not entirely sure what do you mean when you write *"I had a great deal of trouble getting into part two because the page did not show up requesting username and password."* but if you mean you couldn't get the admin app to show the login form then please make sure you are following the tutorial fully without skipping steps because editing the urls.py file is one of the first tasks part two directs you to perform: https://docs.djangoproject.com/en/1.4/intro/tutorial02/#activate-the-admin-site

(using the tutorial for Django 1.4 because that's the version the OP selected when opening this ticket, but the same applies to any other version of the tutorial).

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.