How To Get Post, Delete In Django Request
Where does django store the PUT and DELETE request information. Is this in POST or something? if not (request.POST.get(required_arg) or request.GET.get(required_arg) or request.DE
Solution 1:
Because most web browsers don't actually support PUT
, DELETE
, or PATCH
, Django (as well as other frameworks) simulates those with a POST
.
If you don't actually know which method the parameter you want will use you could use request.REQUEST.get(required_arg)
which checks the POST
variables first and then GET
. The Django docs discourage this in favor of explicitly request.GET
or request.POST
for most circumstances.
See https://docs.djangoproject.com/en/1.7/ref/request-response/
Post a Comment for "How To Get Post, Delete In Django Request"