您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

什么“这里不允许使用目录索引.”是指Django错误?

5b51 2022/1/14 8:23:26 python 字数 1165 阅读 582 来源 www.jb51.cc/python

我正在尝试调试我的Django应用程序中出现的这个奇怪的404错误. Page not found (404) Request Method: GET Request URL: http://78.198.124.245/ Directory indexes are not allowed here. You're seeing this error because you have DEB

概述

Page not found (404)
Request Method: GET
Request URL:    http://78.198.124.245/
Directory indexes are not allowed here.
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.

什么“这里不允许使用目录索引”.意思?什么是目录索引?

我用Google搜索,我发现所有结果都与提供静态文件有关.但是,我不认为我这样做.这个错误是什么意思?

总结

以上是编程之家为你收集整理的什么“这里不允许使用目录索引.”是指Django错误?全部内容,希望文章能够帮你解决什么“这里不允许使用目录索引.”是指Django错误?所遇到的程序开发问题。


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶