Django in Ajax request send empty response if i not used request.POST -


on local server work normal. on production not work.

if send response way:

@csrf_exempt def ajax_get_delete_modal(request):     data = {         'status': 'success',         'data': 'test')     }  data = json.dumps(data) return httpresponse(data, 'application/json') 

i empty response.

but if send response way:

@csrf_exempt def ajax_get_delete_modal(request):     print request.post     data = {         'status': 'success',         'data': 'test')     }  data = json.dumps(data) return httpresponse(data, 'application/json') 

i normal response.

why happening? production server running on ngix-uwsgi.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -