Does DO App Platform support GeoDjango and PostGIS (+ required libraries)?

I’ve seen that DO App Platform support Django applications, but I haven’t found any information about its geographic extension, GeoDjango. I would use it together with Postgres that requires GEOS, GDAL, PROJ.4, PostGIS installed. Any information on this?


Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Just to add that Digital Ocean’s “managed database” offering does seem to support Postgres extensions like postgis. Here’s a full list and instructions on how to enable them:

Our python buildpack installs libraries specified in your project’s requirements.txt file. GeoDjango may be a problem as it looks to depend on C-libraries which are not installed as part of the base image. We can explore adding this functionality in the future, but in the meantime I would recommend adding a Dockerfile to your repository.

While this tutorial isn’t specific to App Platform, Step 6 describes how to configure a Dockerfile for a Django project. When creating an application in App Platform, we will build and run the image from a Dockerfile (named Dockerfile) if we find one in the root of the project.