
1 ipconfiger 2014 年 10 月 20 日 Flask的话直接redirect就可以了 |
2 dddd OP @ipconfiger 不用第三方框架,除了模板引擎 |
3 shajiquan 2014 年 10 月 21 日 加个 HTTP 状态码 302 ?然后浏览器应该会处理你的跳转。 |
5 MasterYoda 2014 年 10 月 21 日 respOnse= Response( '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n' '<title>Redirecting...</title>\n' '<h1>Redirecting...</h1>\n' '<p>You should be redirected automatically to target URL: ' '<a href="%s">%s</a>. If not click the link.' % (escape(location), display_location), code, mimetype='text/html') response.headers['Location'] = location return response 这里的response是werkzeug的wrapper里的。 |
7 dddd OP |
9 ryd994 2014 年 10 月 23 日 via Android 重定向的method不变吧…… |