2016-08-18 92 views
0

我在python buildpack - watson服務應用程序中有多個屏幕(即頁面)。我正在嘗試創建一個簡單的超鏈接到另一個屏幕。 Bluemix部署在designer-index.html啓動應用程序。 appfile structure已部署bluemix應用程序超鏈接的上下文根

我使用這個源在應用程序中的超鏈接: xxxxx-xxxxx.mybluemix.net/templates/vehicle-selector.html

目前,我得到一個404 - 請求的URL沒有被發現在服務器上。 我是否錯過了帶有上下文根的標記?

回答

1

文件中的templates目錄通常呈現

@app.route('/vehicle') 
def showVehicle(): 
    return render_template('vehicle-selector.html') 

靜態文件走在static目錄

相關問題