老師,這個錯誤怎么改
Page not found?(404)
Request Method: | GET |
---|---|
Request URL: | http://127.0.0.1:8000/blog/hello_world/ |
Using the URLconf defined in?pro.urls
, Django tried these URL patterns, in this order:
admin/
The current path,?blog/hello_world/
, 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.
2019-09-10
在最后的url 輸入的時候, 輸入127.0.0.1:8000/blog/hello_word, 能出現helloword,? 但是前面的是顯示404
2019-09-07
樓主這個問題解決了嗎
2019-04-12
這個問題是你的路由配置出現問題了,你需要檢查一下這個路由配置了
這是我自己配置的路由,你可以參照看一下,對照一下你的配置有沒有什么問題!