- Use GET if:
- The interaction is more like a question (i.e., it is a safe operation such as a query, read operation, or lookup).
- Use POST if:
- The interaction is more like an order, or
- The interaction changes the state of the resource in a way that the user would perceive (e.g., a subscription to a service), or
- The user be held accountable for the results of the interaction.
Django -- HTTP GET or POST
Posted 躬行致远
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Django -- HTTP GET or POST相关的知识,希望对你有一定的参考价值。
以上是关于Django -- HTTP GET or POST的主要内容,如果未能解决你的问题,请参考以下文章
Django 中的 get_list_or_404 和 get_object_or_404 之间的确切区别是啥?
SQLAlchemy 是不是与 Django 的 get_or_create 等效?
SQLAlchemy 是不是与 Django 的 get_or_create 等效?
Django - SQL 批量 get_or_create 可能吗?