All Questions
Tagged with django python-django-storages
124
questions
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 ...
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-...
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 ...
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 ...
-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 ...
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 ...
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 ...
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.
...
2
votes
0
answers
302
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 ...
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 ...
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
...
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 ...
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 ...
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) ...
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 ...