#23012: Typo in tutorial regex -------------------------------+-------------------- Reporter: django@… | Owner: nobody Type: Bug | Status: new Component: Documentation | Version: 1.6 Severity: Normal | Keywords: regex Triage Stage: Unreviewed | Has patch: 1 Easy pickings: 0 | UI/UX: 0 -------------------------------+-------------------- I was following the (excellent) tutorial at https://docs.djangoproject.com/en/1.6/intro/tutorial03/ and noticed what I think is a bug in some of the regexs. For exampe:
{{{ # ex: /polls/5/ url(r'^(?P<poll_id>\d+)/$', views.detail, name='detail'), }}} The regex matches on <domain.name>/poll_id. However, the comment and subsequent documentation say it should match on <domain.name>/'''polls/'''poll_id. I believe the line (and those near it, should be modified as follows: {{{ url(r'^polls/(?P<poll_id>\d+)/$', views.detail, name='detail'), }}} -- Ticket URL: <https://code.djangoproject.com/ticket/23012> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.09dcd7a1b028fdbee6ea62e3f51851a3%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.