Description

Ubuntu 11.10 and derivatives ship with PostgreSQL 9.1, which the create_template_postgis-debian.sh script included in the GeoDjango section of the documentation isn't able to handle.

I also noticed that if I manually create and run a PostgreSQL cluster on my system, created databases have the plpgsql language included by default. I needed to take that into account in the script as well.