Home > other >  Python django rookie help post and get
Python django rookie help post and get

Time:09-21

Self-study django see online some views. Py the view function will write:
Def XXX (request, eid) :
. If the request method=='POST' :
XXXXXX
The else:
XXXXXXX
Could you tell me why points so write
Ask next request, by the way behind what is the meaning of the parameter

Thank you bosses answer

CodePudding user response:

HTML method: the GET and POST

https://blog.csdn.net/tombrow/article/details/79550710

CodePudding user response:

https://blog.csdn.net/weixin_30535913/article/details/97856933? Depth_1 - utm_source=distribute. Pc_relevant. None - task - blog - BlogCommendFromMachineLearnPai2 1 & amp; Utm_source=distribute. Pc_relevant. None - task - blog - BlogCommendFromMachineLearnPai2-1

CodePudding user response:

POST: the login in the django POST method, the browser binding form data coding then send to the server, and then accept the request from the server

GET: on the contrary, the GET the submitted data binding as a string, and then form a url, include the url data are sent to the address of the data key and the value of the

GET the POST is usually used for different purposes, any application can be used to change the state of the system, for example, a database can cause change should use a POST request, should GET used to not only change the state of the system request

  • Related