Ticket #11880: 11880.diff
File 11880.diff, 1.2 KB (added by , 15 years ago) |
---|
-
docs/ref/contrib/admin/index.txt
1301 1301 admin.autodiscover() 1302 1302 1303 1303 urlpatterns = patterns('', 1304 ( '^admin/', include(admin.site.urls)),1304 (r'^admin/', include(admin.site.urls)), 1305 1305 ) 1306 1306 1307 1307 Above we used ``admin.autodiscover()`` to automatically load the … … 1315 1315 from myproject.admin import admin_site 1316 1316 1317 1317 urlpatterns = patterns('', 1318 ( '^myadmin/', include(admin_site.urls)),1318 (r'^myadmin/', include(admin_site.urls)), 1319 1319 ) 1320 1320 1321 1321 There is really no need to use autodiscover when using your own ``AdminSite`` … … 1343 1343 from myproject.admin import basic_site, advanced_site 1344 1344 1345 1345 urlpatterns = patterns('', 1346 ( '^basic-admin/', include(basic_site.urls)),1347 ( '^advanced-admin/', include(advanced_site.urls)),1346 (r'^basic-admin/', include(basic_site.urls)), 1347 (r'^advanced-admin/', include(advanced_site.urls)), 1348 1348 ) 1349 1349 1350 1350 ``AdminSite`` instances take a single argument to their constructor, their