|<meta name=description content="">|
|<meta name=viewport content="width=device-width, initial-scale=1">|
|<link rel="stylesheet" href="https://openlayers.org/en/v4.4.2/css/ol.css" type="text/css">|
|<!-- The line below is only needed for old environments like Internet Explorer and Android 4.x -->|
Serving Flask under a subpath
Your Flask app object implements the
__call__ method, which means it can be called like a regular function.
When your WSGI container receives a HTTP request it calls your app with the
environ dict and the
WSGI is specified in PEP 0333.
The two relevant environ variables are:
The initial portion of the request URL's "path" that corresponds to the application object, so that the application knows its virtual "location". This may be an empty string, if the application corresponds to the "root" of the server.
|Assume IIS is installed. My machine already had IIs 8.5.|
|1. Download web installer (Python 3.6.3).|
|2. Run as Administrator.|
|3. Select custom installation for all users.|
|4. Choose install directory such that there are no white spaces in the path. Not sure if it needs to be done. Just being cautious.|
|5. Check the box for "Add Python 3.6 to PATH".|