Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#10055 closed (fixed)

Documentation clarification to url lookups

Reported by: TLS Owned by: jacob
Component: Documentation Version: 1.0
Severity: Keywords: URLconf
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Tutorial 3 is excellent, however I think a very small technicality should be slightly fixed.

At the time of this writing, at line 120 and 121 in /django/trunk/docs/intro/tutorial03.txt say (backing up one line for a complete sentence) :

For example, in a request to http://www.example.com/myapp/, the URLconf will look for /myapp/. In a request to http://www.example.com/myapp/?page=3, the URLconf will look for /myapp/.

The issue is that the URLconf will not actually be searching /myapp/, but rather, myapp/ (without the leading slash). This is evidenced by the actual behavior of Django's URL lookup, as well as the URLconf supplied in the tutorial just a few lines above the section which I'm quoting. I'd fix it myself, but I'm not into the development end of things yet so I can't commit any changes, although I hope soon to change that fact :)

Attachments (1)

tutorial03.diff (816 bytes) - added by kgrandis 6 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 6 years ago by jacob

  • milestone set to 1.1
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 6 years ago by timo

  • Summary changed from Documentation clarification to Documentation clarification to url lookups

comment:3 Changed 6 years ago by kgrandis

  • Owner changed from nobody to kgrandis
  • Status changed from new to assigned

Changed 6 years ago by kgrandis

comment:4 Changed 6 years ago by kgrandis

  • Has patch set

comment:5 Changed 6 years ago by jacob

  • Owner changed from kgrandis to jacob

comment:6 Changed 6 years ago by jacob

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [10371]) Fixed a whole bunch of small docs typos, errors, and ommissions.

Fixes #8358, #8396, #8724, #9043, #9128, #9247, #9267, #9267, #9375, #9409, #9414, #9416, #9446, #9454, #9464, #9503, #9518, #9533, #9657, #9658, #9683, #9733, #9771, #9835, #9836, #9837, #9897, #9906, #9912, #9945, #9986, #9992, #10055, #10084, #10091, #10145, #10245, #10257, #10309, #10358, #10359, #10424, #10426, #10508, #10531, #10551, #10635, #10637, #10656, #10658, #10690, #10699, #19528.

Thanks to all the respective authors of those tickets.

comment:18 Changed 4 years ago by jacob

  • milestone 1.1 deleted

Milestone 1.1 deleted

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