看了3天卡在实战那里一天多找不到错误
2009-10-16
书中提示 admin 的URLs的配置为“(r'^admin/',include('django.contrib.admin.urls'))”
这样配置出现错误 正确方式:
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/(.*)', admin.site.root),
)