【发布时间】:2019-09-22 18:28:46
【问题描述】:
我遇到以下错误
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/check.html
Using the URLconf defined in myproject.urls, Django tried these URL patterns, in this order:
webapp/
[name='index']
check [name='check']
admin/
The current path, check.html, didn't match any of these.
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
【问题讨论】:
-
请按照教程进行。模板与 URL 没有任何关系。