Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#16910 closed Bug (fixed)

Misleading regex in urlpatterns inclusion example

Reported by: ochmann@… Owned by: nobody
Component: Documentation Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

In the second example from Including other URLconfs, the "extra_patterns" do not start with a "^" which seems to lead to a situation where anything can be inserted between the first and the second part of the defined URL. For instance,

credit/reports/123/

and

credit/somethingsomethingreports/123/

would both lead to the "credit.views.report" view.

Change History (3)

comment:1 by Aymeric Augustin, 13 years ago

Easy pickings: set
Triage Stage: UnreviewedAccepted

comment:2 by Paul McMillan, 13 years ago

Resolution: fixed
Status: newclosed

In [16892]:

[1.3.X] Fixed #16910 -- Misleading urlpatterns docs regex example.

comment:3 by Paul McMillan, 13 years ago

In [16893]:

Fixed #16910 -- Misleading regex in urlpatterns inclusion docs.

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