I have made this class:
"class Teste(Thread):
def __init__(self):
Thread.__init__(self)
def run(self):
try:
print "Begin"
from httplib2 import Http
import time
time.sleep(20)
print "PASSED SLEEP"
response, content = Http().request("http://www.spoj.pl")
print "OUT"
except:
print "EXCEPTION :("
"
Then I have a view that calls Teste().start(), the message that I receive
on error log is only "BEGIN".
But if I do no use a thread, the "error log" will work correctly "Begin,
PASSED SLEEP" and "OUT".
I think it is something related to Apache2/Mod_wsgi or even permissions in
my system, because if run it with sudo using runserver it will work
perfectly.
In my house it works perfectly too.
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en.