如题:
Flask如何解决F5刷新重复提交的问题,谢谢!
表单提交完成后,使用redirect
而不是直接返回表单页面
如果需要返回信息,则使用flash
域传递消息
flash('You were successfully logged in')
return redirect(url_for('index'))
参考:
http://flask.pocoo.org/docs/0.10/patterns/flashing/#simple-flashing
Flask如何解决F5刷新重复提交的问题,谢谢!
表单提交完成后,使用redirect
而不是直接返回表单页面
如果需要返回信息,则使用flash
域传递消息
flash('You were successfully logged in')
return redirect(url_for('index'))
参考:
http://flask.pocoo.org/docs/0.10/patterns/flashing/#simple-flashing