After creating new postgres db and loading necessary postgis extension
$ createdb demodb
$ psql demodb
> CREATE EXTENSION postgis;
> CREATE EXTENSION postgis_topology;
I get django.db.utils.ProgrammingError: type "geometry" does not exist
exception thrown while running django manage.py migrate
After this I tried running the failed query in pgadmin and it said the same: type "geometry" does not exist
Although appending CREATE EXTENSION postgis;
before the query seems to fix this and query returned ok. But running manage.py migrate
again throwed the same exception.
Isn't loading new extension permanent? And if so, how can I load it permanently, so it is loaded when running migrate
?