部署瓶和apache2 mod_wsgi问题

2024-09-30 01:33:14 发布

您现在位置:Python中文网/ 问答频道 /正文

我只是按照他们在这个doc中所说的一切来做,但是我还没有弄清楚为什么apache2抛出低于错误。在

root@Test1:/etc/apache2/sites-available# tail -5 /var/log/apache2/error.log 
[Sat Oct 17 04:22:13.518858 2015] [core:notice] [pid 28379] AH00094: Command line: '/usr/sbin/apache2'
[Sat Oct 17 04:22:18.930540 2015] [:error] [pid 28573] [client 223.190.213.33:33891] mod_wsgi (pid=28573): Exception occurred processing WSGI script '/var/www/instanotify/instanotify.wsgi'.
[Sat Oct 17 04:22:18.930623 2015] [:error] [pid 28573] [client 223.190.213.33:33891] TypeError: 'module' object is not callable
[Sat Oct 17 04:43:26.664459 2015] [:error] [pid 28575] [client 223.190.213.33:34215] mod_wsgi (pid=28575): Exception occurred processing WSGI script '/var/www/instanotify/instanotify.wsgi'.
[Sat Oct 17 04:43:26.664634 2015] [:error] [pid 28575] [client 223.190.213.33:34215] TypeError: 'module' object is not callable

更新:

^{pr2}$

如果我删除virtualenv激活行,我将得到no module named flask

有人知道怎么解决。。。!我很乐意提供进一步的信息


Tags: clientlogmodwsgivarexceptionerrorpid

热门问题