Opened 17 years ago
Closed 17 years ago
#6190 closed (invalid)
Part 3 Feedback urls.py
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | dev |
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
In the section of Part 3: Time for an example. "Edit mysite/urls.py so it looks like this:"
You should note explicitly to comment out or delete the (r'^admin/', include('django.contrib.admin.urls')),
in the mysite/urls.py or you should have steps where both the "results" and "vote" views are added. The urls.py simply won't work with admin and polls.views.results and/or polls.views.results as is (i.e. w/o their respective views).
However, if you delete (or comment out) the url point to admin, you obviously can't navigate to /admin anymore.
I'm just stating this from a noob's point of view.
Change History (3)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
comment:3 by , 17 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
The tutorial asks you to edit your urls.py
so that it looks like the given urls.py
(which doesn't contain any pattern for admin
views).
The polls
views aren't supposed to work at that point; you haven't written them yet. See Write your first view.
(Ticket #6286 is about the fact that django.contrib.admin.urls
isn't included in urls.py
.)
Marking as invalid.
This ticket looks bogus to me.
The tutorial clearly states that no views have been created yet in section Write your first view.
But it's true that Time for an example. Edit mysite/urls.py so it looks like this: does not contain
admin
views, this should perhaps be fixed.