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

后端 未结 4 502
南方客
南方客 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:33

    Python C extension modules, like numpy, are known to cause timeouts when used under mod_wsgi. There's a clear explanation of the problem (direct from the author of mod_wsgi) available at https://serverfault.com/a/514251/109598

    If that sounds like it might be the cause of your problem, then the solution is probably simple - add the following to your httpd.conf:

    WSGIApplicationGroup %{GLOBAL}
    

    Be sure to restart your Apache instance after making that change.

提交回复
热议问题