By joelghill
I’ve been reading the tutorials on how to deploy a Django site and for the most part it all makes sense. I’m wondering if there’s a limitation with the app platform though… is it possible to store media uploaded by users of the content management service I’m deploying? As far as I understand anything written to the docker container will be erased on each deployment and I don’t see how to map directories in permanent storage to the docker image directories. Is this a use case for a more advanced setup?
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!
I think you have two options here, either using DigitalOcean block storage or using DigitalOcean Spaces object storage.
If you want access control for the content uploaded to your CMS application, which I assume you do, you can use DigitalOcean Spaces Object storage with Django package like django-storages:
https://django-storages.readthedocs.io/en/latest/backends/digital-ocean-spaces.html
Note that the environment variable names include AWS, this is because Spaces is S3-compatible.
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.