猿问

LearnPythonTheHardWay练习50

这显然是一个简单的问题,但我似乎无法理解。在LPTHW练习50中,要求我创建一个网页foo.html。我已经完成了此操作,并将其保存在项目框架的template文件夹中。


当我在http://localhost:8080浏览器中键入内容时,它会自动找到index.html页面。该文件的路径是Python/projects/gothonweb/templates/index.html


但是,当我尝试通过键入以下任意内容来查找foo.html页面时,无法找到它。它的文件路径是Python/projects/gothonweb/templates/foo.html


http://localhost:8080/foo.html

http://localhost:8080/templates/foo.html

http://localhost:8080/gothonweb/templates/foo.html

http://localhost:8080/projects/gothonweb/templates/foo.html

http://localhost:8080/Python/projects/gothonweb/templates/foo.html

这是我第一次在网络上使用python,非常感谢您的帮助



冉冉说
浏览 135回答 2
2回答
随时随地看视频慕课网APP

相关分类

Python
我要回答