I have a flask app running through IIS 10. wfastcgi loaded into app folder. app file is app.py. I cannot figure out how wfastcgi is pointing to the app.py file? I had a web.config file in the same folder. All it contained was:
<configuration>
</configuration>
I deleted that file, website still works. I do not have any other web.config files that I know of. How does wfastcgi.py know about the app.py file? If I remove the app.py file I get this web error: Error occurred while reading WSGI handler:
Traceback (most recent call last):
File "C:\Users\Terry Phillips\Documents\ADXF\ADXF-Python\ACINT-WebServices\TACINT-WebService\wfastcgi.py", line 791, in main
env, handler = read_wsgi_handler(response.physical_path)
File "C:\Users\Terry Phillips\Documents\ADXF\ADXF-Python\ACINT-WebServices\TACINT-WebService\wfastcgi.py", line 633, in read_wsgi_handler
handler = get_wsgi_handler(os.getenv("WSGI_HANDLER"))
File "C:\Users\Terry Phillips\Documents\ADXF\ADXF-Python\ACINT-WebServices\TACINT-WebService\wfastcgi.py", line 616, in get_wsgi_handler
raise ValueError('"%s" could not be imported%s' % (handler_name, last_tb))
ValueError: "app.app" could not be imported: Traceback (most recent call last):
File "C:\Users\Terry Phillips\Documents\ADXF\ADXF-Python\ACINT-WebServices\TACINT-WebService\wfastcgi.py", line 600, in get_wsgi_handler
handler = __import__(module_name, fromlist=[name_list[0][0]])
ModuleNotFoundError: No module named 'app'