﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10050	Documentation bug in tutorial / admin manual?  'AdminSite' object has no attribute 'urls'	dstn@…	nobody	"This is with the released Django 1.0.2

On the tutorial page 2, you have the code snippet (for setting up URLConfs for the admin site):

{{{
urlpatterns = patterns('',
    # Example:
    # (r'^mysite/', include('mysite.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
)
}}}

Yet '''admin.site.urls''' does not exist, so django produces an error page instead of the admin site login.

In the (startproject) auto-generated '''urls.py''', there is:

{{{
urlpatterns = patterns('',
    # Example:
    # (r'^mysite/', include('mysite.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
                       (r'^admin/(.*)', admin.site.root),
)
}}}

which works as expected.

The same bug is repeated in the admin site documentation at http://docs.djangoproject.com/en/dev/ref/contrib/admin/#adminsite-objects


Thanks for all your great work, I *heart* Django.

cheers,
dustin.
"		closed	Documentation	1.0		fixed	AdminSite urlconf		Accepted	0	0	0	0	0	0
