Code

Ticket #11880: 11880.diff

File 11880.diff, 1.2 KB (added by timo, 5 years ago)
Line 
1Index: docs/ref/contrib/admin/index.txt
2===================================================================
3--- docs/ref/contrib/admin/index.txt    (revision 11600)
4+++ docs/ref/contrib/admin/index.txt    (working copy)
5@@ -1301,7 +1301,7 @@
6     admin.autodiscover()
7 
8     urlpatterns = patterns('',
9-        ('^admin/', include(admin.site.urls)),
10+        (r'^admin/', include(admin.site.urls)),
11     )
12 
13 Above we used ``admin.autodiscover()`` to automatically load the
14@@ -1315,7 +1315,7 @@
15     from myproject.admin import admin_site
16 
17     urlpatterns = patterns('',
18-        ('^myadmin/', include(admin_site.urls)),
19+        (r'^myadmin/', include(admin_site.urls)),
20     )
21 
22 There is really no need to use autodiscover when using your own ``AdminSite``
23@@ -1343,8 +1343,8 @@
24     from myproject.admin import basic_site, advanced_site
25 
26     urlpatterns = patterns('',
27-        ('^basic-admin/', include(basic_site.urls)),
28-        ('^advanced-admin/', include(advanced_site.urls)),
29+        (r'^basic-admin/', include(basic_site.urls)),
30+        (r'^advanced-admin/', include(advanced_site.urls)),
31     )
32 
33 ``AdminSite`` instances take a single argument to their constructor, their