Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python mod_wsgi不工作_Python_Wsgi - Fatal编程技术网

Python mod_wsgi不工作

Python mod_wsgi不工作,python,wsgi,Python,Wsgi,我在Centos 6服务器上使用Python Flask,而mod_wsgi突然无法工作 这是错误消息 mod_wsgi (pid=6206): Target WSGI script '/home/bridge/index.wsgi' does not contain WSGI application 'application'. 这是api.wsgi文件 import sys sys.path.insert(0,'/home/bridge/apis') from apis import ap

我在Centos 6服务器上使用Python Flask,而mod_wsgi突然无法工作

这是错误消息

mod_wsgi (pid=6206): Target WSGI script '/home/bridge/index.wsgi' does not contain WSGI application 'application'.
这是api.wsgi文件

import sys
sys.path.insert(0,'/home/bridge/apis')
from apis import app as application

import logging
logging.basicConfig(stream=sys.stderr)
这是index.py文件

from apis import app
我没有在服务器上更改任何内容。我所做的就是重新启动服务器。有人知道这个问题吗?

试试看:

它列出了modwsgi的许多问题。祝你好运

你可能不小心编辑了你的代码,把事情搞砸了。仔细检查