#14432 closed (fixed)
Tutorial import line missing (tiny correction)
Reported by: | gorus | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.2 |
Severity: | Keywords: | easy-pickings | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hi, thanks a lot for the tutorial, it's great!
At the very end of Part 3, in the last highlighted code block, after the admin registration lines have been removed, the following line should remain:
from django.conf.urls.defaults import *
before the "urlpatterns = patterns(..." code block. Otherwise, the newly created polls/urls.py doesn't work correctly. Better yet, "*" could be replaced with "patterns".
Thanks again,
Anton
Attachments (1)
Change History (5)
comment:1 by , 14 years ago
Keywords: | easy-pickings added |
---|---|
Summary: | Tutorial import line missing (tiny correction needed?) → Tutorial import line missing (tiny correction) |
Triage Stage: | Unreviewed → Accepted |
by , 14 years ago
Attachment: | tutorial03.patch added |
---|
comment:2 by , 14 years ago
Has patch: | set |
---|
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 14 years ago
Note:
See TracTickets
for help on using tickets.
Technically, a few lines earlier the tutorial tells you to "Copy the file mysite/urls.py to polls/urls.py." If you followed along verbatim, you'd still have the import lines at the top of that file.
However, for the sake of completeness, showing the suggestion import line in that last code block won't hurt.