Skip to main content
The 2024 Developer Survey results are live! See the results

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.

python-django-storages
1 vote
1 answer
20 views

Django templates and css: is there a workaround for getting my preload link tags to match my css relative paths to font sources?

Background I just started using Digital Oceans Spaces for storing my static files for my Django web app (connected using django-storages library). Previously, I used link elements in the head of my ...
DevinG's user avatar
  • 502
2 votes
1 answer
22 views

When using django-storages with a cloud storage service, is there a way to make the collectstatic management command run faster?

Issue I recently connected my Django app to Digital Ocean Spaces using the django-storages library, and suffice it to say I have a lot of static files (currently 2545 files, most of which are small-...
DevinG's user avatar
  • 502
0 votes
0 answers
30 views

custom storage-backend class not working as expected with s3, boto3 and django-storages

I am following this tutorial here from Michael Herman, trying to setup s3 storage for my django project and I am facing some issues right from the start of the tutorial. First, when I tried running ...
Tejaswin's user avatar
0 votes
0 answers
8 views

AWS ElasticBeanstalk Django collectstatic expected string or bytes-like object, got 'NoneType'

I'm using django-storages on elastic beanstalk and when i try to collectstatic i get this error. Note that i can collectstatic with it fine on my local machine. I have validated that all ENV vars are ...
Micah's user avatar
  • 10.4k
-1 votes
1 answer
47 views

getting an empty folder in django new project

I created a virtual environment than I installed Django successfully but when I try to create a project with Django-admin start-project project-name Django create an empty folder? I'm expecting a ...
Yusuf Bature's user avatar
0 votes
0 answers
66 views

How to read file in s3 Bucket using django-storages?

I have a Django app that uses DigitalOcean Spaces to store user-uploaded files. The app then transcribes those files and returns the text. However when I try to read the file using the url to the ...
tthheemmaannii's user avatar
0 votes
0 answers
42 views

How to set manifest_storage for ManifestFilesMixin (Django)

I use django-storages to serve my static files from S3. I want to use the ManifestFilesMixin for cache busting my CSS and JS files. The following works fine: from django.contrib.staticfiles.storage ...
user24192533's user avatar
0 votes
0 answers
38 views

Django pre-signed url file uploads architecture MVC

I'm trying to implement file uploads using pre-signed URLs using Django. I've got the upload part working, however, I'm not sure what the architecture should look like for standard MVC application. ...
Marijus's user avatar
  • 4,325
2 votes
0 answers
301 views

Python Django ASGI - memory leak - UPDATED #2

EDIT 25.04.2024: malloc_trim(0) seems to work. I need to test how the server memory consumption looks like in the long run, though. This is modified asgi.py which starts deamon thread which invokes ...
fifdee's user avatar
  • 21
1 vote
1 answer
113 views

Pre-Signed URL with boto3 and django-storages incorrect filepath

For a file upload feature, I'm trying to set a FileField in Django using a presigned url but when the field is saved it seems that the aws bucket name is being added into the url so when I try to ...
RHSmith159's user avatar
  • 1,592
0 votes
1 answer
122 views

Storing files to S3 not working inside Celery worker

I am facing issues with storing files in S3 from django's celery task. I am doing following things Get data from DB Create the XLSX file with BytesIO Storing that file with file.save method of Django ...
deep adeshra's user avatar
0 votes
0 answers
157 views

Uploading large file to GCS with django and django-storages -- direct or multi-part uploads?

I'm creating a django application that uploads multimedia to Google Cloud Storage using django-storages. My application is running on Google App Engine; I'm using the admin interface for admins to ...
nathan lachenmyer's user avatar
0 votes
0 answers
25 views

When trying to access files throug sftp request takes too long and hangs the server

I am using a server to store my files, and I have employed storages.backends.sftpstorage.SFTPStorage to manage URLs, downloads, and uploads. However, I occasionally encounter the following issue when ...
Shukurillo Makhammadjanov's user avatar
2 votes
0 answers
195 views

Problems configuring my Django project to upload static and media files to DigitalOcean Spaces

I have created a social media app using Django and Vue. My frontend is hosted on Vercel (which is working just fine) and my backend is hosted on DigitalOcean's App Platform (I am NOT using a droplet) ...
tinytown's user avatar
1 vote
1 answer
618 views

ModuleNotFoundError: No module named 'storages'

I no idea why this error kept occur in my terminal my current django version, 4.2.3 python version, 3.10.6 and my virtual environment is on, and I did downloaded these pip pip install boto3 pip ...
Chai Yon Xing's user avatar

15 30 50 per page
1
2 3 4 5
9