0

On local server all work normal. But on production not work.

If I send response this way:

@csrf_exempt
def ajax_get_delete_modal(request):
    data = {
        'status': 'success',
        'data': 'test')
    }

data = json.dumps(data)
return HttpResponse(data, 'application/json')

i get empty response.

But if I send response this 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 get normal response.

Why is this happening? Production server running on ngix-uwsgi.

Vadim
  • 46
  • 2

0 Answers0