In order to connect to an external service such as a Postgres server, you need to use urlfetch or socketAPI.To use urlfetch, your postgres server will need a HTTP interface.socketAPI is possible: https://github.com/pjebs/GAE-Toolkit-Go/tree/master/sql
This package is an experimental package designed to allow Google App Engine (Standard Environment) to use an non-cloudSQL database hosted elsewhere.