已部署的bluemix应用上超链接的上下文根目录

Context root for hyperlinks on a deployed bluemix app

本文关键字:超链接 上下文 根目录 应用 部署 bluemix      更新时间:2023-09-26

我有多个屏幕(即页面)在一个python buildpack - watson服务应用程序。我试图创建一个简单的超链接到另一个屏幕。Bluemix部署在designer-index.html处启动应用程序。appfile结构

我使用这个源在应用程序中的超链接:xxxxx-xxxxx.mybluemix.net/templates/vehicle-selector.html

目前我得到一个404 -请求的URL没有在服务器上找到。我错过了上下文根标记吗?

templates目录下的文件通常呈现

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

静态文件放在static目录