django-storage

Can't save InMemoryUploadedFile to S3 in Django Admin

Can't save InMemoryUploadedFile to S3 in Django Admin Question: I’m using the django-storage package, and trying to upload multiple images at once. So I overwritten the add_view and save_model methods in ModelAdmin, in order to remove the original image field and use a custom one (with a multiple flag in the input tag) given in …

Total answers: 2

Django: Create zipfile from S3 using django-storage

Django: Create zipfile from S3 using django-storage Question: I use django-storages and have user related content stored in folders on S3. Now I want users to have the ability to download all their files at once, preferably in a zip file. All the previous posts related to this are old or not working for me. …

Total answers: 2

Django use private S3 storage only in production environment

Django use private S3 storage only in production environment Question: I have set up my django REST API to use local storage when in DEBUG mode and S3 storage when in production environment. This works well for public files, because I override the DEFAULT_FILE_STORAGE like so: if IS_DEBUG: DEFAULT_FILE_STORAGE = ‘api.storage_backends.PublicMediaStorage’ and every FileField uses …

Total answers: 4