test db spatial extentsion not created when using new postgis 2.0 "CREATE EXTENSION postgis;" method
|Reported by:||monkut||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Following the directions here:
I created my database using the new "CREATE EXTENSION postgis;" method and then attempted to run tests using the standard, manage.py test, but it appears that test does not properly add the necessary postgis extensions and errors with:
DatabaseError: type "geometry" does not exist LINE 7: "center" geometry(POINT,3122),
In addition, I attempted to define the POSTGIS_VERSION in my settings.py file thinking this might just be undocumented, but even after adding this, the same error above is still seen.
I guess the work around is to revert to using the create postgis template method.
It would be nice if testing was supported when the "CREATE EXTENTSION" method is used, but if not supported, at least update the docs to mention testing can't be done when this method is used.
Change History (11)
comment:1 Changed 4 years ago by
|Summary:||test db not created when using new postgis 2.0 "CREATE EXTENSION postgis;" method → test db spatial extentsion not created when using new postgis 2.0 "CREATE EXTENSION postgis;" method|