Question

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?

Thanks!

Subscribe
Share

I’m also very interested in this issue. Curious, did you have any luck with the suggested method below?


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

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: https://docs.digitalocean.com/products/databases/postgresql/resources/supported-extensions/#supported-extensions

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.