Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python to IIS 8?
#1
Good day, is there a way to move a site from a python web server (compiled in python) to IIS 8?
Reply
#2
https://medium.com/@bilalbayasut/deployi...1873ae0ad8
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#3
Under the section “Setting Up Windows Environment For Python”, what are the system environment variables?
Reply
#4
Environment Variables are available for all programs you run.
Programs look them up, if needed.

The variable PYTHONPATH seems to point to the webroot, where the Python files are.
The WSGI_HANDLER is points to your app.

from flask import Flask


app = Flask(__name__)
# this is the app object, where
# the HANDLER connects


@app.route('/')
def root():
    return 42


# this following code
# is not executed, if it's started
# by WSGI.

if __name__ == '__main__':
    app.run()
If this file is called foo.py, then the value of WSGI_HANDLER is foo.app.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#5
it seems I hit a sang in the instructions. The WfastCGI 2.1 gateway…can no longer be downloaded? The Web Installer points to a location that is no longer available, and the direct link point to CodePlex which is gone? do you know where I can download the file(s)?

My guess would be to download “FastCGI for IIS” then install Python 3.x separately? Where would I go from there? would the instructions be good beyond that point?

Also what would the “Variable Name” and “Variable Path” be when editing the system variables?
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020