From 6e52e2554dcc902b446f9d371ed1e6a07f36d6ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Fleschenberg?= Date: Tue, 27 Feb 2018 01:57:52 +0100 Subject: [PATCH] Fixed incorrect regex in re_path() example. --- docs/topics/http/urls.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt index 5d28ac4272..ead494e619 100644 --- a/docs/topics/http/urls.txt +++ b/docs/topics/http/urls.txt @@ -201,7 +201,7 @@ Here's the example URLconf from earlier, rewritten using regular expressions:: path('articles/2003/', views.special_case_2003), re_path(r'^articles/(?P[0-9]{4})/$', views.year_archive), re_path(r'^articles/(?P[0-9]{4})/(?P[0-9]{2})/$', views.month_archive), - re_path(r'^articles/(?P[0-9]{4})/(?P[0-9]{2})/(?P[\w-_]+)/$', views.article_detail), + re_path(r'^articles/(?P[0-9]{4})/(?P[0-9]{2})/(?P[\w-]+)/$', views.article_detail), ] This accomplishes roughly the same thing as the previous example, except: