html 的 frameset - Linux

By Hedy
at 2014-12-27T16:52
at 2014-12-27T16:52
Table of Contents
※ [本文轉錄自 Python 看板 #1KdaG3ud ]
作者: gn00618777 (非常念舊) 看板: Python
標題: [問題] html 的 frameset
時間: Sat Dec 27 13:30:39 2014
ㄧ個 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">
我在 linux 下寫一個 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/ 底下,在linux底下
啟動 test.py server 程式
客戶端瀏覽器無法載入其他 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 要怎麼寫呢? 謝謝。
--
作者: gn00618777 (非常念舊) 看板: Python
標題: [問題] html 的 frameset
時間: Sat Dec 27 13:30:39 2014
ㄧ個 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">
我在 linux 下寫一個 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/ 底下,在linux底下
啟動 test.py server 程式
客戶端瀏覽器無法載入其他 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 要怎麼寫呢? 謝謝。
--
Tags:
Linux
All Comments

By Carol
at 2014-12-31T00:38
at 2014-12-31T00:38

By Lucy
at 2014-12-31T13:34
at 2014-12-31T13:34

By Todd Johnson
at 2015-01-01T13:22
at 2015-01-01T13:22

By Wallis
at 2015-01-01T22:03
at 2015-01-01T22:03

By Jack
at 2015-01-04T03:27
at 2015-01-04T03:27
Related Posts
請問xrdp編譯的問題

By Daniel
at 2014-12-27T11:12
at 2014-12-27T11:12
Syslinux Menu Password 求助~~

By Andrew
at 2014-12-26T22:28
at 2014-12-26T22:28
哪裡能租或借Solaris Sparc的機器呢?

By Quanna
at 2014-12-26T21:53
at 2014-12-26T21:53
Flask running

By Eden
at 2014-12-25T18:15
at 2014-12-25T18:15
dialog和putty顯示

By Lucy
at 2014-12-25T17:39
at 2014-12-25T17:39