FLASK部署IIS时,如何获得程序的WSGI_HANDLER
各位大神,
我的FLASK网页部署到IIS后运行,出现如下报错:
Error occurred while reading WSGI handler: Traceback (most recent call last): File "C:\Python39\lib\site-packages\wfastcgi-3.0.0-py3.9.egg\wfastcgi.py", line 791, in main env, handler = read_wsgi_handler(response.physical_path) File "C:\Python39\lib\site-packages\wfastcgi-3.0.0-py3.9.egg\wfastcgi.py", line 633, in read_wsgi_handler handler = get_wsgi_handler(os.getenv("WSGI_HANDLER")) File "C:\Python39\lib\site-packages\wfastcgi-3.0.0-py3.9.egg\wfastcgi.py", line 616, in get_wsgi_handler raise ValueError('"%s" could not be imported%s' % (handler_name, last_tb)) ValueError: "ITSystemCheck.app" could not be imported: Traceback (most recent call last): File "C:\Python39\lib\site-packages\wfastcgi-3.0.0-py3.9.egg\wfastcgi.py", line 600, in get_wsgi_handler handler = __import__(module_name, fromlist=[name_list[0][0]]) ModuleNotFoundError: No module named 'ITSystemCheck' StdOut: StdErr:
请问是不是在web.config中填写WSGI_HANDLER值不对啊?(我填写的是项目名“ITSystemCheck“)
还有什么其它原因会导致这个错误?
谢谢指导!