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
This commit is contained in:
parent
4606e0898e
commit
692f84c4f1
|
@ -1395,7 +1395,7 @@ In this example, we register the default ``AdminSite`` instance
|
||||||
admin.autodiscover()
|
admin.autodiscover()
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
('^admin/', include(admin.site.urls)),
|
(r'^admin/', include(admin.site.urls)),
|
||||||
)
|
)
|
||||||
|
|
||||||
Above we used ``admin.autodiscover()`` to automatically load the
|
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
|
from myproject.admin import admin_site
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
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``
|
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
|
from myproject.admin import basic_site, advanced_site
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
('^basic-admin/', include(basic_site.urls)),
|
(r'^basic-admin/', include(basic_site.urls)),
|
||||||
('^advanced-admin/', include(advanced_site.urls)),
|
(r'^advanced-admin/', include(advanced_site.urls)),
|
||||||
)
|
)
|
||||||
|
|
||||||
``AdminSite`` instances take a single argument to their constructor, their
|
``AdminSite`` instances take a single argument to their constructor, their
|
||||||
|
|
Loading…
Reference in New Issue