Opened 13 years ago

Closed 12 years ago

#18476 closed Cleanup/optimization (fixed)

Hard coded template link causes conflict with tutorial statement

Reported by: anonymous Owned by: Tim Graham <timograham@…>
Component: Documentation Version: 1.4
Severity: Normal Keywords: tutorial
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

At the end of part 3 of the tutorial (https://docs.djangoproject.com/en/1.4/intro/tutorial03/) the following statement is made.

"The idea behind include() and URLconf decoupling is to make it easy to plug-and-play URLs. Now that polls are in their own URLconf, they can be placed under "/polls/", or under "/fun_polls/", or under "/content/polls/", or any other path root, and the app will still work."

Due to a hard link to '/polls/' in the index.html template code for polls (further up on the same page), simply changing the URLconf setting to '/fun_polls/' or similar won't be enough to get things working (all the way).

Not a big issue, but would be great to have that fixed to avoid confusion.

Thanks.

Attachments (2)

ticket18476.diff (710 bytes ) - added by Renato Oliveira 12 years ago.
Just added a reference to the url tag
18476-2.diff (4.3 KB ) - added by Claude Paroz 12 years ago.
More extensive usage of url template tag

Download all attachments as: .zip

Change History (6)

comment:1 by Claude Paroz, 13 years ago

Triage Stage: UnreviewedAccepted

We should either use the url tag directly in the first template exemple, or introduce it in a new paragraph at the end of the tutorial 3.

In any case, we should then also use the url tag in the next part of the tutorial.

comment:2 by Renato Oliveira, 12 years ago

Owner: changed from nobody to Renato Oliveira
Status: newassigned

by Renato Oliveira, 12 years ago

Attachment: ticket18476.diff added

Just added a reference to the url tag

by Claude Paroz, 12 years ago

Attachment: 18476-2.diff added

More extensive usage of url template tag

comment:3 by Claude Paroz, 12 years ago

Has patch: set
Owner: Renato Oliveira removed
Status: assignednew

comment:4 by Tim Graham <timograham@…>, 12 years ago

Owner: set to Tim Graham <timograham@…>
Resolution: fixed
Status: newclosed

In [690ed5794672495e4cffca9a4a701008d254a4e7]:

Fixed #18476 - Added use of {% url %} tag to tutorial.

Thanks Claude Paroz for the patch.

Note: See TracTickets for help on using tickets.
Back to Top