dgango 报错: Timeout when reading response headers from daemon process

问题:

image = np.asarray(bytearray(f.read()), dtype="uint8")
cv2_img = cv2.imdecode(image, cv2.IMREAD_COLOR)

虽然image中已经接收到数据,代码却在decode函数处卡死。
解决:
在mysite.conf中添加
WSGIApplicationGroup %{GLOBAL}

参考:
https://stackoverflow.com/questions/40413171/django-webfaction-timeout-when-reading-response-headers-from-daemon-process

posted on 2019-01-21 14:02  兔子二  阅读(565)  评论(0编辑  收藏  举报

导航