319 questions
0
votes
1
answer
44
views
Django - S3: collectstatic does not create new folder, even with all permissions and write privileges
Cursor ai called it a "strange problem", so we're back to the original home of solutions.
I upgraded django from 2.2 to 5.2, and upgraded my storages, tinymce,.. etc modules along with it.
i ...
0
votes
1
answer
85
views
Django-storages inserting bucket name as a folder
I'm migrating to Django 5.1.6 (django-storages 1.14.5) from Django 3.2 using DigitalOcean S3-compatible Spaces and when I run python manage.py collectstatic the bucket name is being inserted as a ...
3
votes
0
answers
241
views
How to ManifestStaticFilesStorage with django-storages, boto3 on DigitalOcean Spaces Object Storage?
Context: I am running Django==5.1.2.
I need to have cache busting for my static files on prod.
On dev, my settings are like so
STORAGES = {
"default": {
"BACKEND": &...
0
votes
1
answer
160
views
EndpointConnectionError using Localstack with Django
I'm working on setting up Localstack in my Django app so we don't need to connect to S3 for local development. This is the relevant part of my docker-compose:
app:
build:
context: .
...
2
votes
0
answers
139
views
Django S3 Storage prepends base url before custom domain
I have S3 object storage with a CDN infront of it (on DigitalOcean). I have pointed my domain cdn.domain.com to the cdn & this is working fine.
In Django I am using django-storages[s3] to connect ...
1
vote
1
answer
210
views
Django ignores static configuration for uploading to S3
I had the same problem with media files before, I did all the configuration but django kept saving the media files locally and not in S3, I think it was solved by implementing a custom class ...
0
votes
1
answer
255
views
django-import-export: Customizable storage not working with minio
Following the documentation, I'm trying to configure the library to store temporary import files from the admin page into a MinIO bucket.
This is my STORAGES configuration:
...
0
votes
1
answer
96
views
Getting two "https://" in the url of image
I'm developing a project using Django and Django Rest Framework in which I have to save an image in a model. I'm using S3 bucket as a storage device. I'm able to upload the image and save it to the ...
0
votes
0
answers
31
views
File path not saved in database, but it is in storage. Collision? Django rest framework
Hey im trying to handle file upload with use of celery tasks. However after all tasks complete, file appears to be in storage and not in database when i query /files. Thumbnail (which is generated as ...
3
votes
2
answers
4k
views
Getting DEFAULT_FILE_STORAGE/STORAGES are mutually exclusive when upgraded to 4.2
We are in process to upgrade to django 4.2. However we are facing above issue in running django peroject. We have already setup new way of STORAGES in settings.py i.e.
STORAGES = {
"...
0
votes
1
answer
473
views
Django - Oracle Cloud Bucket integration with django-storages
I have configured the django-storages to point to OCI bucket. Below is the configuration:
AWS_S3_ACCESS_KEY_ID = env('AWS_BUCKET_KEY')
AWS_SECRET_ACCESS_KEY = env('AWS_BUCKET_SECRET')
...
0
votes
2
answers
273
views
Urls in CSS files not getting signed through django-storages
For example, my css code has this image file:
background: url('/static/studyspot5/images/shapes/footer_sass.png');
And it does not render on my AWS site
I have the following relevant code in my ...
0
votes
2
answers
1k
views
Django 4.2 on AWS - collectstatic is not uploading files to S3
This has been a nightmare to try and figure out. Nothing is working. Here is my code.
eb-hooks log is always sending the files to the localhost
1084 static files copied to '/var/app/current/static'
...
1
vote
1
answer
1k
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 ...
1
vote
1
answer
124
views
Django storages adding “;amp” to staticfiles query string parameter only for Django-jet files resulting in unauthorized access
Some staticfiles links have wrong params, what i noticed that they are only related to "django-jet" package.
Normal Django staticfiles URL:
https://daal.nyc3.digitaloceanspaces.com/static/...