title: connect to remote postgres database using pylons and psycopg2
body: <p>I am able to connect to my remote database using psycopg2 in standalone Python 2.6 program, but cannot establish connection from within controller in Pylons.</p>
  
  <p>How can I do that?</p>
  
  <p>EDIT: exception value I am getting is <strong>could not translate host name "localhost:7780" to address: Name or service not known</strong> </p>
  
  <p>I am creating ssh tunnel to connect to remote database.</p>