当我们处理了post提交的数据之后,我们使用HttpResponseRedirect跳转到另一个页面,而不是用HttpResponse。

例如当一个投票环节时使用HttpResponse可以使用浏览器back再次进行投票,而HttpResponseRedirect则后退的时候会刷新。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
  • 2022-12-23
  • 2021-12-18
猜你喜欢
  • 2021-10-20
  • 2021-05-05
  • 2021-10-26
  • 2021-07-15
  • 2022-01-22
相关资源
相似解决方案