Opened 16 years ago

Closed 16 years ago

#9331 closed (invalid)

More regexp examples needed for urls.py documentation

Reported by: Roland van Laar Owned by: nobody
Component: Documentation Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Extra regexp examples would be nice because it's new for some developers.
The only examples deal with integers, it would be nice to include short descriptions of \d \D \s \D \w and \W.
Such as: (r'(?P<user>\w+)/user_detail/$','django.views.generic.simple.direct_to_template', {'template' : 'user_detail.html'}),

Change History (2)

comment:1 by Roland van Laar, 16 years ago

Component: UncategorizedDocumentation

comment:2 by James Bennett, 16 years ago

Resolution: invalid
Status: newclosed

This is a case where people who are new to programming probably will benefit the most not from a simplified cheat-sheet in our docs, but from going out and actually learning the concept (regular expressions are a pretty fundamental thing developers should know).

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