Questions tagged [python-django-storages]

A library for creating custom backends in Django. Not to be confused with django-storage in general. Use this tag when you have a question about working with or creating a custom backend in Django.

See https://django-storages.readthedocs.io/en/latest/ for more information.

128 questions
38
votes
4 answers

django-storages with multiple S3 Buckets

I am using AWS and I will have different buckets in my application. I am also using Django-Storages. Is there a way to specify which bucket I want to upload the file to (for example, as a parameter in the Save() function or whatever?) I saw this…
abisson
  • 4,365
  • 9
  • 46
  • 68
19
votes
8 answers

Django storages: Import Error - no module named storages

I'm trying to use Django's storages backend (for BotoS3) settings.py: INSTALLED_APPS = ( ... 'storages', ... ) as shown in http://django-storages.readthedocs.org/en/latest/index.html. and, requirements.txt: django-storages==1.1.8 But am getting…
tldr
  • 11,924
  • 15
  • 75
  • 120
17
votes
6 answers

Django Storages - Could Not Load Amazon's S3 Bindings Errors

Hey so trying to connect my user uploaded images to my S3 bucket so the images will store there. Using django storages (did some research, seemed to be what everyone suggested, but open to ideas) Here's what I did: Installed django storages pip…
12
votes
2 answers

How to generate presigned S3 urls using django-storages?

I have a Django form which saves a file to s3 through the django-storages library and works fine. How can I generate and return a pre-signed url so the user can access the file temporarily after it is uploaded ? Is this abstracted by django-storages…
Tamdim
  • 972
  • 2
  • 12
  • 29
12
votes
1 answer

Django-Storages S3 with minio as backend

i would like to use django-storages with minio so i tryd to adopt settings, configs etc. I found on the web but for some reason my access key or the way it gets provided fails with the following error: botocore.exceptions.ClientError: An error…
user10000033
9
votes
1 answer

Using Django-Storages with amazon S3 and https

We have an image uploader that uploads to AWS, using django-storages. Right now it sends images over http but we want it to use https. Googling didn't help me find a way to configure django-storages to do it. Does anyone know the best way to…
ahalbert
  • 474
  • 1
  • 6
  • 15
9
votes
5 answers

django-storages and amazon s3 - suspiciousoperation

I'm using django-storages with Amazon S3. I see the following error somewhat intermittently: name = self._normalize_name(self._clean_name(name))\n\n File \"/app/.heroku/venv/lib/python2.7/site-packages/storages/backends/s3boto.py\", line 237, in…
Khandelwal
  • 661
  • 2
  • 14
  • 24
6
votes
1 answer

django-storges support for CloudFront signed URL

I want to use CloudFront's signed URLs rather than plain unsigned URLs. django-storages gives the option of AWS_S3_CUSTOM_DOMAIN but then it generates unsigned URLs from CloudFront's subdomain. By default AWS_QUERYSTRING_AUTH is True and it does…
6
votes
1 answer

How do I set up django-storages?

I can't figure out how to set up django-storages. All of the directions seem to be incomplete or something. I've…
Zacharoo
  • 113
  • 1
  • 10
5
votes
1 answer

Django storages S3 - Store existing file

I have django 1.11 with latest django-storages, setup with S3 backend. I am trying to programatically instantiate an ImageFile, using the AWS image link as a starting point. I cannot figure out how to do this looking at the source / documentation.…
Giannis
  • 5,286
  • 15
  • 58
  • 113
5
votes
1 answer

How to use django-storages for media storage on dropbox?

I am using django-storages to serve media files on Dropbox. But I cannot get it working (media files are still stored in local server). I've installed dropbox and django-storages, and created an app with permission type:app folder, then added…
S_M
  • 290
  • 3
  • 18
4
votes
2 answers

Django-Storages with SFTP: GET-requests fail

I am trying to use django-storages to access my "Hetzner" Storage Box (https://www.hetzner.com/storage/storage-box) using SFTP which should hold media data, i.e. image files which users of my website can upload dynamically. The corresponding part of…
Sarius
  • 125
  • 2
  • 16
4
votes
1 answer

Segmentation fault (core dumped) with django-storages

I'm using Django 2.x and Django-storages to upload files to the S3 Bucket. While running the sample test from manage.py shell, it gives the following error and terminates the console. Segmentation fault (core dumped) The console log as per the…
Anuj TBE
  • 9,198
  • 27
  • 136
  • 285
4
votes
1 answer

Django-storages S3Boto3Storage makes HEAD and GET requests on read

I am using the S3Boto3Storage storage backend from the django-storages package in my Django application. I use the backend to handle large amounts of files in S3. When reading a file from the storage, the backend makes separate HEAD and GET…
yellowcap
  • 3,985
  • 38
  • 51
3
votes
1 answer

Custom S3Boto3Storage with django-storages

I developed a Django app that I'm using VM's disk for saving and serving media and static files but in one of my models, I want to save my files in a FileField connected to my MinIO object storage. I set up the settings like this in the…
Omid Roshani
  • 1,083
  • 4
  • 15
1
2 3
8 9