django-storage Questions

3

Solved

When serving media with django-storage s3, the media url that is being generated is something like this: https://mybucket.s3.amazonaws.com/myimage.jpg?Signature=5ifoyLqzmtfVNS1ovfzVvN92RH0%3D&...
Kendo asked 12/3, 2013 at 21:1

7

Solved

I have a django project which use django-storage over s3-boto. Problem is that every file that is located on S3 unable to cache because the url is changed from each call. here are two calls gener...
Curvaceous asked 27/3, 2013 at 20:9

7

Solved

I'm configuring a Django project that were using the server filesystem for storing the apps static files (STATIC_ROOT) and user uploaded files (MEDIA_ROOT). I need now to host all that content on ...
Southsoutheast asked 30/4, 2012 at 20:36

4

Solved

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...
Vilipend asked 21/12, 2019 at 15:49

5

I am using django-storages with s3boto as a backend. I have one bucket with two folders - one for static and one for media. I achieve this using django-s3-folder-storage. As well as saving to S3 ...
Receipt asked 10/6, 2013 at 8:28

2

Solved

So when i try accessing a certain image on S3 from my browser everything works fine. But when python is doing it i get a SuspiciousOperation error. My static folder is public on S3 so i really hav...

3

Solved

I have based my django aws S3 solution on https://simpleisbetterthancomplex.com/tutorial/2017/08/01/how-to-setup-amazon-s3-in-a-django-project.html. Now I am trying to find a way to delete a row i...

4

Solved

This is strange. I have mix of public as well as private files. I want normal urls in public files, and signed urls in private files. I tried to change AWS_QUERYSTRING_AUTH to False as I see by de...
Fortis asked 27/5, 2013 at 17:25

4

I have a Django model that saves filename as "uuid4().pdf". Where uuid4 generates a random uuid for each instance created. This file name is also stored on the amazon s3 server with the same name. ...

2

Solved

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 o...
Bridwell asked 3/9, 2021 at 20:47

5

Solved

As the question asks, what are the minimum required permissions for a locked down s3 IAM user to use django-storages successfully? At the present time I've used something like { "Statement": [ {...
Dungaree asked 18/10, 2012 at 19:4

6

Solved

I am using django-storages and sorl_thumbnail together and I am using Amazon S3 for static and media files. I am using one bucket with 2 folders, 1 for static and 1 for media. Here is my config: ...
Dormie asked 30/9, 2012 at 7:56

1

Solved

My problem boils down to this: I have two services in docker compose: app and storage. I'm looking for a way to access the storage service (port 9000) from inside app and from outside using the sam...
Jonajonah asked 10/7, 2019 at 12:37

3

I have a Django application running on Heroku. To store and serve my static files, I'm using django-storages with my S3 bucket, as well as the standard Django ManifestFilesMixin. I'm also using dja...
Binucleate asked 17/5, 2018 at 9:10

4

In my Django project I use Django-storageS to save media files in my Amazon S3. I followed this tutorial (I use also Django-rest-framework). This works well for me: I can upload some images and I ...

5

Solved

I have 2 files compiled by django-pipeline along with s3boto: master.css and master.js. They are set to "Public" in my buckets. However, when I access them, sometimes master.css is served, sometime...
Locus asked 5/8, 2012 at 22:23

3

I'm having a weird problem and I have no idea what's causing it. Here's my current config (using Heroku): MEDIA_URL = '/media/' STATIC_URL = '/static/' STATICFILES_DIRS = ( os.path.join(PROJECT_D...
Korean asked 9/11, 2012 at 2:18

2

I am using a combination of django-storages and ManifestStaticFilesStorage to server static files and media from S3. class StaticStorage(ManifestFilesMixin, S3BotoStorage): location = settings.ST...
Audley asked 8/5, 2017 at 15:52

4

Solved

I am using django-storage (which uses Boto3 internally) to upload images. I am successfully able to do so and the return URL I get is of this format: https://.s3.amazonaws.com/foo.jpg?Signature=&...
Bicephalous asked 12/12, 2017 at 13:39

0

I'm using Amazon S3 to be my static and media files storage. My Django project is running in Digital ocean ubuntu 16.04. After running python manage.py collectstatic I found the CSS and js did not...
Tarim asked 19/9, 2018 at 5:53

1

Solved

I have uploading files to S3 working fine with my Wagtail/django application (both static and uploads). Now I'm trying to use ManifestStaticFilesStorage to enable cache busting. The urls are correc...
Incommunicado asked 13/9, 2018 at 8:40

1

I'm trying to upgrade an app to Django 1.11, but experience issues with collectstatic. Old versions: django 1.8.17 django-storages 1.5.1 New versions: django 1.11.12 django-storages 1.6.6 S...
Lorenalorene asked 24/4, 2018 at 10:37

1

Solved

I have deployed a Django application on Heroku with the goal of allowing trusted, known, internal users upload a CSV file, click "Run", and behind the scenes, the Django app: loads a saved sklear...
Cretonne asked 12/4, 2018 at 19:21

4

Solved

I have created a custom storage backend, the file is called storages.py and is placed in an app called core: from django.conf import settings from storages.backends.s3boto import S3BotoStorage cl...
Shuma asked 24/2, 2012 at 12:27

1

Solved

I would like to be able resize my uploaded image to various size categories: original medium (500kb) small (200kb) And save it to AWS S3. And later be able to access it. One strategy is to save...
Portemonnaie asked 20/11, 2017 at 2:25

© 2022 - 2025 — McMap. All rights reserved.