這顯然是一個簡單的問題,但我似乎無法理解。在LPTHW練習50中,要求我創建一個網頁foo.html。我已經完成了此操作,并將其保存在項目框架的template文件夾中。當我在http://localhost:8080瀏覽器中鍵入內容時,它會自動找到index.html頁面。該文件的路徑是Python/projects/gothonweb/templates/index.html但是,當我嘗試通過鍵入以下任意內容來查找foo.html頁面時,無法找到它。它的文件路徑是Python/projects/gothonweb/templates/foo.htmlhttp://localhost:8080/foo.htmlhttp://localhost:8080/templates/foo.htmlhttp://localhost:8080/gothonweb/templates/foo.htmlhttp://localhost:8080/projects/gothonweb/templates/foo.htmlhttp://localhost:8080/Python/projects/gothonweb/templates/foo.html這是我第一次在網絡上使用python,非常感謝您的幫助
添加回答
舉報
0/150
提交
取消