문제

I use Python Flask on Centos 6 server, and mod_wsgi is not working suddenly.

here is the error message.

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

here is the apis.wsgi file.

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

import logging
logging.basicConfig(stream=sys.stderr)

here is the index.py file.

from apis import app

I haven't changed anything on server. All I did was restart the server. Is there someone who knows about this issue?

도움이 되었습니까?

해결책

Try looking at this: http://code.google.com/p/modwsgi/wiki/InstallationIssues

It lists many issues with the modwsgi. Good luck on this fix!

You might of accidentally edited your code and messed things up. Double check.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top