From 692f84c4f1d831f0fbb06d349b1a91e42235eab7 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sun, 10 Jan 2010 18:01:22 +0000 Subject: [PATCH] Fixed #11880 -- Changed admin URLconfs in docs to use raw strings, for consistency. Thanks, jb0t git-svn-id: http://code.djangoproject.com/svn/django/trunk@12176 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/contrib/admin/index.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index d4851330c1..a5b3138b44 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1395,7 +1395,7 @@ In this example, we register the default ``AdminSite`` instance admin.autodiscover() urlpatterns = patterns('', - ('^admin/', include(admin.site.urls)), + (r'^admin/', include(admin.site.urls)), ) Above we used ``admin.autodiscover()`` to automatically load the @@ -1409,7 +1409,7 @@ In this example, we register the ``AdminSite`` instance from myproject.admin import admin_site urlpatterns = patterns('', - ('^myadmin/', include(admin_site.urls)), + (r'^myadmin/', include(admin_site.urls)), ) There is really no need to use autodiscover when using your own ``AdminSite`` @@ -1437,8 +1437,8 @@ respectively:: from myproject.admin import basic_site, advanced_site urlpatterns = patterns('', - ('^basic-admin/', include(basic_site.urls)), - ('^advanced-admin/', include(advanced_site.urls)), + (r'^basic-admin/', include(basic_site.urls)), + (r'^advanced-admin/', include(advanced_site.urls)), ) ``AdminSite`` instances take a single argument to their constructor, their