[問題] html 的 frameset
ㄧ個 index.html ,裡面有 frameset tag,分成三區塊,這三個區塊在 index.html
裡分別代表其他三份 html,例子如下:
<frameset cols="20%,80%">
<frameset rows="30%,70%">
<frame src="overview-frame.html" name="packageListFrame">
<frame src="allclasses-frame.html" name="classListFrame">
</frameset>
<frame src="overview-summary.html" name="classFrame">
我在 flask 下寫一個 script test.py:
@app.route("/")
def hello():
return "Hello World!"
@app.route("/report")
def view_report():
url_for('static', filename='report/flexmonkey/html/')
return send_from_directory('static', 'report/flexmonkey/html/index.html')
所有html都放在 report/flexmonkey/html/ 底下,server 啟動 test.py
客戶端無法載入其他 html
127.0.0.1 - - [13/Sep/2012 11:01:25] "GET /overview-frame.html HTTP/1.1" 404 -
127.0.0.1 - - [13/Sep/2012 11:01:25] "GET /allclasses-frame.html HTTP/1.1" 404 -
127.0.0.1 - - [13/Sep/2012 11:01:25] "GET /overview-summary.html HTTP/1.1" 404
請問這個在 test.py 要怎麼寫呢? 謝謝。
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.220.220.235
※ 文章網址: http://www.ptt.cc/bbs/Python/M.1419658243.A.E27.html
→
12/28 00:00, , 1F
12/28 00:00, 1F
推
12/28 19:11, , 2F
12/28 19:11, 2F
→
12/28 22:32, , 3F
12/28 22:32, 3F
→
12/28 23:37, , 4F
12/28 23:37, 4F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 3 篇):
Python 近期熱門文章
PTT數位生活區 即時熱門文章