内容:输入这个之后,显示404对吧?
http://localhost:8000/
是不是下面这样?
Page not found (404)
Request Method: GET
Request URL: http://localhost:8000/
Using the URLconf defined in myblog.urls, Django tried these URL patterns, in this order:
admin/
blog/
The empty path 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.
解决办法:
http://localhost:8000/blog
内容:输入这个之后,显示404对吧? http://localhost:8000/ 是不是下面这样? Page not found (404) Request Method: GET Request URL: http://localhost:8000/ Using the URLconf defined in myblog.urls, Django tried these URL patterns, in this order: admin/ blog/ The empty path 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. 解决办法: http://localhost:8000/blog