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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -