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_
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
2 matches
Mail list logo