Upgrade to Django 1.6.1
The PG cursor type codes vary (which took forever to figure out) so now they are generated at runtime