1 from django.conf.urls import patterns, url 2 from home import views 3 4 urlpatterns = patterns('', 5 url(r'^$', views.index ), 6 )
为什么app的urls.py里面的url映射没有 '', 项目(主)url 链接不到views.index 会显示it's worked