美文网首页
Django报错:The empty path didn'

Django报错:The empty path didn'

作者: CoderZb | 来源:发表于2019-02-17 02:18 被阅读3次

报错内容如下

image.png
Page not found (404)
Request Method: GET
Request URL:    http://127.0.0.1:8000/
Using the URLconf defined in test1.urls, Django tried these URL patterns, in this order:
^admin/
^tinymce/
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.

解决办法:将标号1和3中^后面的内容置空即可。

image.png
image.png

相关文章

网友评论

      本文标题:Django报错:The empty path didn'

      本文链接:https://www.haomeiwen.com/subject/pqmweqtx.html