views:

62

answers:

1

i using gae and django

this is my code:

class LogText(db.Model):
    content = db.StringProperty(multiline=True)


class MyThread(threading.Thread):
    def __init__(self,threadname):
        threading.Thread.__init__(self, name=threadname)
    def run(self,request):
        log=LogText()
        log.content=request.POST.get('content',None)
        log.put()

def Log(request):
    thr = MyThread('haha')
    thr.run(request)

    return HttpResponse('')
+1  A: 

It's impossible to do in GAE since all requests (including cron job) have 30 seconds deadline.

Denis Malinovsky
how to realize this not on gae .
zjm1126
It's also impossible because you cannot start new threads on App Engine.
Nick Johnson