Google Groups

janrain dynamic hostname in url

rjmolesa May 19, 2012 10:32 AM
Posted in group: web2py-users
How can I get the host name that web2py is running on so that I can simply deploy a janrain enabled app without editing each time

auth.settings.login_form = RPXAccount(request, 
url = "http://" + application.hostname + "/%s/default/user/login" % request.application)