summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Fleschenberg <rene@fleschenberg.net>2018-02-27 01:57:52 +0100
committerTim Graham <timograham@gmail.com>2018-02-26 20:00:29 -0500
commitc50b9c33f0ba65ea79f890558be0f5b3cd7e2984 (patch)
tree4c814f9fac585b3582f26dece3aee6b7288a141c
parent484d2a6894b0765dc4af600c2dda2c71ac4d9151 (diff)
[2.0.x] Fixed incorrect regex in re_path() example.
Backport of 6e52e2554dcc902b446f9d371ed1e6a07f36d6ec from master
-rw-r--r--docs/topics/http/urls.txt2
1 files changed, 1 insertions, 1 deletions
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<year>[0-9]{4})/$', views.year_archive),
re_path(r'^articles/(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/$', views.month_archive),
- re_path(r'^articles/(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/(?P<slug>[\w-_]+)/$', views.article_detail),
+ re_path(r'^articles/(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/(?P<slug>[\w-]+)/$', views.article_detail),
]
This accomplishes roughly the same thing as the previous example, except: