#11102 closed (fixed)
error in tutorial "Writing your first django app" for urls.py
Reported by: | robmccart | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.0 |
Severity: | Keywords: | tutorial, urls.py | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Django version - 1.0.2 final
Part #2 and #3 of the tutorial show the following line to be uncommented:
(r'^admin/', include(admin.site.urls)),
This causes a Attribute Error: "Admin Site" object has no aattribute 'urls'.
The urls.py file that is shipped with this version has this line which does not cause the error:
(r'^admin/(.*)', admin.site.root),
Change History (4)
comment:1 by , 15 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 15 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
Nope, it's still a problem here:
http://docs.djangoproject.com/en/1.0//intro/tutorial03/#design-your-urls
follow-up: 4 comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:4 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
That's because you are following the wrong tutorial from the djangoproject.com web site.
Look at the big "This document is for Django's SVN release, which can be significantly different from previous releases. Get old docs here: Django 1.0" txt at the top of the page and follow the link that will take you to http://docs.djangoproject.com/en/1.0//intro/tutorial02/#intro-tutorial02.
The documentation included with your copy of Django also is the right one.