﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24700	Some documentation examples incorrectly use \w to match against slugs in URLs	Baptiste Mispelon	nobody	"On https://docs.djangoproject.com/en/dev/topics/http/urls/#including-other-urlconfs (found with `git grep -IF \\w -- docs/`), slugs are matched using `\w+`, like so:

{{{
    url(r'^(?P<page_slug>\w+)-(?P<page_id>\w+)/history/$', views.history),
    url(r'^(?P<page_slug>\w+)-(?P<page_id>\w+)/edit/$', views.edit),
    url(r'^(?P<page_slug>\w+)-(?P<page_id>\w+)/discuss/$', views.discuss),
    url(r'^(?P<page_slug>\w+)-(?P<page_id>\w+)/permissions/$', views.permissions),
}}}

This is incorrect, since slugs can also contain dashes (`-`) so `[\w-]+` should be used instead."	Cleanup/optimization	closed	Documentation	1.8	Normal	fixed			Accepted	0	0	0	0	1	0
