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\w+)-(?P\w+)/history/$', views.history), url(r'^(?P\w+)-(?P\w+)/edit/$', views.edit), url(r'^(?P\w+)-(?P\w+)/discuss/$', views.discuss), url(r'^(?P\w+)-(?P\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