Opened 5 years ago

Closed 5 years ago

Last modified 5 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 Changed 5 years ago by Aymeric Augustin

Easy pickings: set
Triage Stage: UnreviewedAccepted

comment:2 Changed 5 years ago by Paul McMillan

Resolution: fixed
Status: newclosed

In [16892]:

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

comment:3 Changed 5 years ago by Paul McMillan

In [16893]:

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

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