python - django server ignores POST requests -
this unusual behaviour. when issue post request many times django starts ignore them all. can see in firebug debug server shows nothing. restarting server doesn't help. more, when seek restart server when happens get:
error: port in use.
restarting whole machine helps.
i thought may related to
exception attributeerror: attributeerror("'_dummythread' object has no attribute '_thread__block'",) in <module 'threading' '/usr/lib/python2.7/threading.pyc'> ignored
error i'm having event after applying workaround:
import threading threading._dummythread._thread__stop = lambda x: 42
described on understand python threading bug
i'm still having same problem. don't know ho diagnose source of issue.
maybe helpful:
os: ubuntu 12.04 lts processor: intel® core™ i7-2720qm cpu @ 2.20ghz × 4 python 2.7.3 django 1.4.1
any help appreciated.
as work around, utilize --nothreading
alternative disable utilize of threading in dev server.
./manage.py runserver --nothreading
python django thread-safety tastypie
No comments:
Post a Comment