Django

Code

Ticket #10055 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

Documentation clarification to url lookups

Reported by: TLS Assigned to: jacob
Milestone: 1.1 Component: Documentation
Version: 1.0 Keywords: URLconf
Cc: Triage Stage: Accepted
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

tutorial03.diff (0.8 kB) - added by kgrandis on 03/29/09 22:08:32.

Change History

02/27/09 11:54:20 changed by jacob

  • stage changed from Unreviewed to Accepted.
  • milestone set to 1.1.

03/08/09 19:57:23 changed by timo

  • summary changed from Documentation clarification to Documentation clarification to url lookups.

03/29/09 22:02:39 changed by kgrandis

  • owner changed from nobody to kgrandis.
  • status changed from new to assigned.

03/29/09 22:08:32 changed by kgrandis

  • attachment tutorial03.diff added.

03/29/09 22:08:50 changed by kgrandis

  • has_patch set to 1.

04/02/09 13:41:25 changed by jacob

  • owner changed from kgrandis to jacob.

04/03/09 13:30:55 changed by jacob

  • status changed from assigned to closed.
  • resolution set to fixed.

(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.


Add/Change #10055 (Documentation clarification to url lookups)




Change Properties
Action