【发布时间】:2013-03-13 21:03:38
【问题描述】:
找不到页面 (404)
请求方法:GET
请求网址:http://chinafhp.sinaapp.com/search/?q=ag
网址模式:
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'web.views.home', name='home'),
# url(r'^web/', include('web.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^serach/$',views.serach),
url(r'^admin/', include(admin.site.urls)),
url(r'^$',views.home),
url(r'^movie/([^/]+)/$',views.movieList),
url(r'^tv/([^/]+)/$',views.tvList),
)
为什么?
【问题讨论】:
-
可能是因为你拼错了?
标签: python django url-pattern