Opened 7 years ago

Closed 7 years ago

#9331 closed (invalid)

More regexp examples needed for urls.py documentation

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

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 Changed 7 years ago by rvanlaar

  • Component changed from Uncategorized to Documentation
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 7 years ago by ubernostrum

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

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