Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#13329 closed (fixed)

Error in documentation

Reported by: LaundroMat Owned by: gabrielhurley
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 gabrielhurley 5 years ago.
fixes unescaped backslash

Download all attachments as: .zip

Change History (6)

comment:1 Changed 5 years ago by Alex

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted
  • Version changed from 1.1 to SVN

Looks like it's probably an escaping issue.

Changed 5 years ago by gabrielhurley

fixes unescaped backslash

comment:2 Changed 5 years ago by gabrielhurley

  • Has patch set
  • Owner changed from nobody to gabrielhurley
  • Status changed from new to assigned

Yep, it was just a missing backslash.

comment:3 Changed 5 years ago by adamnelson

  • Triage Stage changed from Accepted to Ready for checkin

comment:4 Changed 5 years ago by russellm

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

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

comment:5 Changed 5 years ago by russellm

(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