Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#13329 closed (fixed)

Error in documentation

Reported by: Mathieu Owned by: Gabriel Hurley
Component: Documentation Version: dev
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The code mentioned at http://docs.djangoproject.com/en/dev/topics/generic-views/#performing-extra-work

from mysite.books.views import author_detail

urlpatterns = patterns('',
    #...
    (r'^authors/(?P<author_id>d+)/$', author_detail),
)

is missing a "\" after the named group, and should be:

from mysite.books.views import author_detail

urlpatterns = patterns('',
    #...
    (r'^authors/(?P<author_id>\d+)/$', author_detail),
)

Attachments (1)

13329_escaping.diff (456 bytes ) - added by Gabriel Hurley 15 years ago.
fixes unescaped backslash

Download all attachments as: .zip

Change History (6)

comment:1 by Alex Gaynor, 15 years ago

Triage Stage: UnreviewedAccepted
Version: 1.1SVN

Looks like it's probably an escaping issue.

by Gabriel Hurley, 15 years ago

Attachment: 13329_escaping.diff added

fixes unescaped backslash

comment:2 by Gabriel Hurley, 15 years ago

Has patch: set
Owner: changed from nobody to Gabriel Hurley
Status: newassigned

Yep, it was just a missing backslash.

comment:3 by Adam Nelson, 15 years ago

Triage Stage: AcceptedReady for checkin

comment:4 by Russell Keith-Magee, 15 years ago

Resolution: fixed
Status: assignedclosed

(In [13196]) Fixed #13329 -- Corrected markup problem with URL pattern in generic views docs. Thanks to LaundroMat for the report.

comment:5 by Russell Keith-Magee, 15 years ago

(In [13199]) [1.1.X] Fixed #13329 -- Corrected markup problem with URL pattern in generic views docs. Thanks to LaundroMat for the report.

Backport of r13196 from trunk.

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