我只是按照他们在这个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
有人知道怎么解决。。。!我很乐意提供进一步的信息
您没有导入实际的
app
文件。。。正确的方法是相关问题 更多 >
编程相关推荐