這顯然是一個(gè)簡單的問題,但我似乎無法理解。在LPTHW練習(xí)50中,要求我創(chuàng)建一個(gè)網(wǎng)頁foo.html。我已經(jīng)完成了此操作,并將其保存在項(xiàng)目框架的template文件夾中。當(dāng)我在http://localhost:8080瀏覽器中鍵入內(nèi)容時(shí),它會自動找到index.html頁面。該文件的路徑是Python/projects/gothonweb/templates/index.html但是,當(dāng)我嘗試通過鍵入以下任意內(nèi)容來查找foo.html頁面時(shí),無法找到它。它的文件路徑是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這是我第一次在網(wǎng)絡(luò)上使用python,非常感謝您的幫助
添加回答
舉報(bào)
0/150
提交
取消