我有一个project跟目录的rooturlconf设置内容为:----------------------------------------------------------fromdjango.conf.urlsimportpatterns,include,urlimportfunnytesturlpatterns=patterns(url(r'^funnytest/',include('funnytest.urls')),url(r'^helloworld/',funnytest.views.hello),)-----------------------------------------------------------其中funnytest是其中一个app,funnytest目录下设置了一个Urls,内容为:------------------fromdjango.conf.urlsimportpatterns,include,urlfromviewsimport*urlpatterns=patterns(url(r'^hello/$',hello),)-------------------我访问localhost/funnytest/hello/会报错,表示urls中没有匹配的配置但是访问localhost/helloworld是可以访问到viewhello的为什么呢,应该如何配置~
慕标5832272
相关分类