django post get

GET请求和POST请求
GET请求:
1. 浏览器请求一个页面
2. 搜索引擎检索关键字的时候

POST请求:
1. 浏览器向服务端提交数据,比如登录/注册等

判断提交方式:
if request.method == "GET":
  pass
if request.method == "POST":
  pass

posted on 2019-05-05 17:14  潇潇六月雨  阅读(139)  评论(0编辑  收藏  举报

导航