from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin #这一行和下面的一行原来是注释掉的,要连同^admin那行一起解除注释 admin.autodiscover() 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)),#这一行和上面那两行原来是注释掉的,要连同上面那两行一起解除注释 )