I'm trying to get some unit tests working in Django/PostGis. When the test database is formed, it doesn't have the postgis and postgis_topology extensions installed. Is there a way to issue commands to the database before the creation of tables happens? Or could you somehow mess with the postgres template to inherit from? Or something else that wouldn't require me to either hack the django code or not destroy the database? Thanks!
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
should create a new database with the PostGIS spatial tables enabled. Be careful, too, if you are using different SRID's. Good guidelines are on: http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01 |
||||
|
|