Page not found (404)

来源:2-4 Django HelloWorld

qq_鲶鱼_03380504

2019-12-09 15:34

Page not found (404)
Request Method:    GET
Request URL:    http://127.0.0.1:8000/blog
Using the URLconf defined in django_introduction.urls, Django tried these URL patterns, in this order:

admin/
blog/
The current path, blog, 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.


我看到别的同学有这个问题,也没有解决

写回答 关注

1回答

  • qq_鲶鱼_03380504
    2019-12-10 12:19:38


    路劲:Django_introduction/urls.py
    urlpatterns = [
        path('admin/', admin.site.urls),
        path('blog/', include('blog.urls'))
    ]

三小时带你入门Django框架 新版上架

Python开发上手Web框架的必备课程,三小时带你入门Django框架。

25587 学习 · 248 问题

查看课程

相似问题