psycopg2 Internal Error

For those who've hit the following complaint with django (like I just did):

psycopg2.InternalError: current transaction is aborted, commands ignored until end of transaction block

You need to set up PostGIS and ensure that the table you're looking at has been created from the templatepostgis template. Just a warning, check your database logs for more info.