Opened 12 years ago
Closed 12 years ago
#20341 closed Uncategorized (invalid)
no mention of urls.py in "writing your first django app, part 1'
Reported by: | 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.
Note:
See TracTickets
for help on using tickets.
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).