That will construct a URL including the current host and the current scheme (i.e., http or https).
More generally, the current host can be found in request.env.http_host, and the current scheme in request.env.wsgi_url_scheme (request.is_https also indicates whether the scheme is https or not). See http://web2py.com/examples/simple_examples/status for more details about the request and response objects.
On Saturday, May 19, 2012 1:32:41 PM UTC-4, rjmolesa wrote:
How can I get the host name that web2py is running on so that I can simply deploy a janrain enabled app without editing db.py each time