Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#13329 closed (fixed)

Error in documentation

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

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 7 years ago.
fixes unescaped backslash

Download all attachments as: .zip

Change History (6)

comment:1 Changed 7 years ago by Alex Gaynor

Triage Stage: UnreviewedAccepted
Version: 1.1SVN

Looks like it's probably an escaping issue.

Changed 7 years ago by Gabriel Hurley

Attachment: 13329_escaping.diff added

fixes unescaped backslash

comment:2 Changed 7 years ago by Gabriel Hurley

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

Yep, it was just a missing backslash.

comment:3 Changed 7 years ago by Adam Nelson

Triage Stage: AcceptedReady for checkin

comment:4 Changed 7 years ago by Russell Keith-Magee

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 Changed 7 years ago by Russell Keith-Magee

(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