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!

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.