Home > other >  FLASK deployment IIS, how to get the program WSGI_HANDLER
FLASK deployment IIS, how to get the program WSGI_HANDLER

Time:02-22

Dear god,

My FLASK web deployment to IIS running after, appear the following error:


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:


Excuse me, is in the web. Config fill in WSGI_HANDLER value is wrong? I fill in is the project name "ITSystemCheck")
What other reasons can cause this error?

Thank you for your guidance!

CodePudding user response:

https://blog.csdn.net/COLDRAIN_END/article/details/100172040

CodePudding user response:

reference 1/f, zhao teacher reply:
https://blog.csdn.net/COLDRAIN_END/article/details/100172040


Thank you for your reply, but this explanation is Django configuration method, not a Flask of configuration method

Name: WSGI_HANDLER
Value: the django. Core. Wsgi. Get_wsgi_application ()

CodePudding user response:

https://www.cnblogs.com/xiaolecn/p/5111076.html

CodePudding user response:

This post I have seen, but still did not say what this value in py

Configured projects at the moment, I will be the value, the name of the master file, now at the wrong, I was speechless,,, (FastCGI should be correct, because if I adjust the web. Config the FastCGI path, will say can't find the FastCGI)

  • Related