By sidharths16
I plan on having multiple Django (Wagtail) apps on my DigitalOcean stack each handling hundreds of large images (media files in general). Normally, I use the default Django media storage settings which stores all of it on the disk of the DO Droplet inside the project directory, but I want to dip my toes into implementing S3 with DO Spaces.
DO Spaces offers 250GB shared between the amount of Spaces instances you create and also offers a CDN which seems quite easy to set up (at least on DO’s side).
I am concerned that my Django projects may eat up a lot of this storage allocation, therefore I want to be able to limit each of my Django apps to only use a maximum of 25GB. I will create a management command which will delete old media files and will be run by the DO Droplet as a cron job.
Is there a way to limit the maximum storage limit for one “space”?
Is there a way to set the maximum storage limit for each Django project with django-storages?
What is the best way to achieve this?
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!
Hey @sidharths16,
I believe that this is not currently possible to set such limits but it sounds like a great idea.
The best thing to do to get your voice heard regarding this would be to head over to our Product Ideas board and post a new idea, including as much information as possible for what you’d like to see implemented.
Hope that helps! - Bobby.
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.