Re: [web2py] Relative URLs in development absolute URLs in production

2014-07-17 Thread Richard Vézina
I do that for DB connection : try: if request.env.http_host.split(':')[1] == '8005': raise error # To use shell in prod/staging environnement elif request.env.http_host.split(':')[1] != '': db = DAL('postgres://richard:password@127.0.0.1:5432/db', migrate_

[web2py] Relative URLs in development absolute URLs in production

2014-07-16 Thread Annet
I have a development and a deployment environment. In development all URLs are relative. The issue is I have 2 applications, 1 over http and 1 over https. When I move my applications to production I have to add scheme= ...and host=... to all URLs that are links between the 2 applications. Which