Opened 18 years ago

Closed 18 years ago

#4101 closed (fixed)

Confusing URL match in generic views examples

Reported by: Collin Grady <cgrady@…> Owned by: Jacob
Component: Documentation Version: dev
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

On http://www.djangoproject.com/documentation/generic_views/ there's a URL match using r'/?$' which could cause confusion to new users - as the preceding slash is never sent to urlpatterns, that /? is completely extraneous, but may make people think that sometimes it is sent.

Attachments (2)

generic_views.patch (838 bytes ) - added by Collin Grady <cgrady@…> 18 years ago.
generic_views.2.patch (840 bytes ) - added by Collin Grady <cgrady@…> 18 years ago.
minor correction to last patch

Download all attachments as: .zip

Change History (4)

by Collin Grady <cgrady@…>, 18 years ago

Attachment: generic_views.patch added

by Collin Grady <cgrady@…>, 18 years ago

Attachment: generic_views.2.patch added

minor correction to last patch

comment:1 by Malcolm Tredinnick, 18 years ago

Triage Stage: UnreviewedReady for checkin

What do you mean confusing to "new users"? I had to think about this for a little while to work out what it might be doing. I agree, it's worth fixing.

comment:2 by Malcolm Tredinnick, 18 years ago

Resolution: fixed
Status: newclosed

(In [5050]) Fixed #4101 -- Clarified a potentially confusing URL pattern in one example.
Thanks, Collin Grady.

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