5👍
✅
Visgean,
When setting up PostGIS for the first time, I had a lot of the same questions as you so I created an article detailing the PostGIS setup. Sorry to plug my own article, but I created it to help document the setup process.
http://www.chicagodjango.com/blog/geo-django-quickstart/
Looking at your question above, it’s hard to tell exactly what the issue is. However, things you might check that would produce that PostGIS error listed:
- Are all the apt system dependencies are installed? See Step 1 from the article.
- When you created the postgis_template schema, did run the commands to create the geospacial database objects (See Step 2 of attached link)?
- Is a fairly recent version of PostGIS installed? Check the minimum requirements at: https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#spatial-database
Anyway, hope this helps. Joe
Source:stackexchange.com