By Al3xs
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!
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.