Ticket #12585: paren.diff

File paren.diff, 670 bytes (added by fcsmith, 15 years ago)
  • docs/intro/tutorial03.txt

     
    103103
    104104    detail(request=<HttpRequest object>, poll_id='23')
    105105
    106 The ``poll_id='23'`` part comes from ``(?P<poll_id>\d+)``. Using parenthesis
     106The ``poll_id='23'`` part comes from ``(?P<poll_id>\d+)``. Using parentheses
    107107around a pattern "captures" the text matched by that pattern and sends it as an
    108108argument to the view function; the ``?P<poll_id>`` defines the name that will be
    109109used to identify the matched pattern; and ``\d+`` is a regular expression to
Back to Top