【发布时间】:2019-09-10 04:40:08
【问题描述】:
我在本地主机和不同的端口 5000 和 5001 上运行了两个烧瓶应用程序。 首先我在端口 5000 上运行烧瓶应用程序,然后如果我的烧瓶应用程序 1 的条件满足,我想将其重定向到在端口号 5001 上运行的 index.html。
我试过 return render_template('http://localhost:5001/index.html') 但它给出了一个错误 jinja2.exceptions.TemplateNotFound: http://localhost:5001/index.html
【问题讨论】: