来自Django官方教程的话:
“you should always return an HttpResponseRedirect after successfully dealing with POST data. This tip isn’t specific to Django; it’s just good Web development practice.”
为什么呢?
“This prevents data from being posted twice if a user hits the Back button.”
为什么会两次提交数据?