Django unable to parse POST data with webhooks -
i'm writing webhook view parse data 3rd party. have created view csrf_exempt decorator django unable parse regular post data (not json).
@csrf_exempt def webhook(request): if request.method != "post": return httpresponse("invalid request.", status=400) print data = request.raw_post_data print request.post
this print correct raw data (i tested "domain=example.com&username=user") returns empty post dict:
post:<querydict: {}>
any advice? i'm running django 1.3
first of make sure have set attribute name on inputs <input type="text" name="input_name" />
Comments
Post a Comment