It seems to me that it's worth asking users if they want to see the possibility of using postgis in this project. I tried to install postgis andgdal, but I did not succeed.
If I'm not mistaken, is it enough to find a good example of postgis on dockerhub, which is maintained for a long time so that it can be included in this project?
Gis is one of the django apps that comes out of the box. This is the best geo framework from all that I've come across. I also think that cookiecutter is the best boilerplace for Django, so it would not be bad to unite them :)
I've never used PostGIS in any of my previous production projects, and neither did the teams which I personally has been part of or which I know of -- I don't have expertise to seriously consider the proposal, yet to my mind introducing PostGIS dependency would make Cookiecutter Django maintenance burden way heavier than it used to be, especially in the light of potential hurdles you mentioned in the description.
Maybe @pydanny, @jayfk, @luzfcb, @browniebroke, @sfdye have other thoughts?
I also think supporting POSTGIS is outside of the scope of cookiecutter-django. If someone is interested, they can make always make a fork.
up to this date, I have not had any need to use postgis on any project. so for lack of long-term maintainer, I agree @sfdye, that this is outside the scope of cookiecutter-django, and may well live on a fork
I use the postgis and geo-django on most of my projects. The Django docker images requires a few mods to install the required libraries.
I swap the Postgres image for this one: https://hub.docker.com/r/mdillon/postgis/
and this Dockerfile for Django.
https://gist.github.com/sww314/4638d2605bc1400b000f7d1e73d3d793
I believe @sww314's comment addresses this specific issue. However, we don't have plans to integrate PostGIS with our current project template in the foreseeable future.
The alpine linux GIS packages are all only on edge, and break frequently. After 48 hours of debugging ABI incompatibilities, I decided to just compile them myself. Here is the result, in case it is useful!
https://hub.docker.com/r/senderle/pystgis
This performs the first half of the work done in the dockerfile from @sww314, only it compiles proj and gdal from source as well. My local Django dockerfile now looks like this.
Most helpful comment
I use the postgis and geo-django on most of my projects. The Django docker images requires a few mods to install the required libraries.
I swap the Postgres image for this one: https://hub.docker.com/r/mdillon/postgis/
and this Dockerfile for Django.
https://gist.github.com/sww314/4638d2605bc1400b000f7d1e73d3d793