summaryrefslogtreecommitdiff
path: root/docs/ref/urlresolvers.txt
diff options
context:
space:
mode:
authorSjoerd Job Postmus <sjoerdjob@sjec.nl>2016-10-20 19:29:04 +0200
committerTim Graham <timograham@gmail.com>2017-09-20 18:04:42 -0400
commitdf41b5a05d4e00e80e73afe629072e37873e767a (patch)
treebaaf71ae695e2d3af604ea0d663284cb406c71e4 /docs/ref/urlresolvers.txt
parentc4c128d67c7dc2830631c6859a204c9d259f1fb1 (diff)
downloaddjango-df41b5a05d4e00e80e73afe629072e37873e767a.tar.gz
Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201.
Thanks Aymeric Augustin for shepherding the DEP and patch review. Thanks Marten Kenbeek and Tim Graham for contributing to the code. Thanks Tom Christie, Shai Berger, and Tim Graham for the docs.
Diffstat (limited to 'docs/ref/urlresolvers.txt')
-rw-r--r--docs/ref/urlresolvers.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/urlresolvers.txt b/docs/ref/urlresolvers.txt
index 2e6bc463dd..aa814a9e40 100644
--- a/docs/ref/urlresolvers.txt
+++ b/docs/ref/urlresolvers.txt
@@ -17,7 +17,7 @@ callable view object. For example, given the following ``url``::
from news import views
- url(r'^archive/$', views.archive, name='news-archive')
+ path('archive/', views.archive, name='news-archive')
you can use any of the following to reverse the URL::