I've written a post request to execute method in Django, but I found when executing takes a little longer, nothing returned.
Here is a simple example, I've tested this.
Ajax code:
$.post('/test-time/', function(data) {
    alert(data);
})
In my Django views:
def testTime(request):
    for i in range(100):
        print i
        time.sleep(1)
    return HttpResponse('success!')
When time is 100s, It works, browser alert 'success!'.
But when I make the time a little longer, like:
def testTime(request):
    for i in range(400):
        print i
        time.sleep(1)
    return HttpResponse('success!')
Ajax won't get any return data, browser didn't alert.
Http server is Nginx, using uwsgi to run Django.
Hope you can help me, thank you :)
 
     
    