Opened 4 years ago

Closed 4 years ago

Last modified 4 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


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,




would both lead to the "" view.

Change History (3)

comment:1 Changed 4 years ago by aaugustin

  • Easy pickings set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 4 years ago by PaulM

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

In [16892]:

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

comment:3 Changed 4 years ago by PaulM

In [16893]:

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

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