Django Webfaction 'Timeout when reading response headers from daemon process'

后端 未结 4 508
南方客
南方客 2020-12-14 17:59

My Django app on my production server hosted on Webfaction was working fine until I just tried to restart it after pushing a change to the settings.py file. I ran

         


        
4条回答
  •  半阙折子戏
    2020-12-14 18:22

    In my case (Python 3.6), the mimetypes module caused this problem. I did not further investigate this, but removing a call to mimetypes.guess_type solved the problem. The call was made in the related Django view function.

提交回复
热议问题