【发布时间】:2011-06-25 22:48:09
【问题描述】:
所以我有这个 URL 方案:
(r'^test/(?P<name>\d+)/', 'test'),
def test(request, name):
html = "it worked"
return HttpResponse(html)
但是,当我转到以下 URL 时,我收到 404 错误:
http://127.0.0.1:8000/test/words/
我做错了什么?
【问题讨论】:
标签: django django-views django-urls django-queryset