django-storage

Inconsistent SignatureDoesNotMatch Amazon S3 with django-pipeline, s3boto and storages

戏子无情 提交于 2019-11-27 03:47:05
问题 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, sometimes it errs with SignatureDoesNotMatch. The same with master.js. This doesn't happen on Chrome. What could I be missing? EDIT : It now happens on Chrome too. 回答1: Happened to me too... Took a few hours to find, but I figured it out eventually. Turns out that if the right signature is :

Upgrading to Django 1.7. Getting error: Cannot serialize: <storages.backends.s3boto.S3BotoStorage object

丶灬走出姿态 提交于 2019-11-27 02:45:56
问题 I am trying to upgrade a django app from django 1.6.6 to 1.7 and am using python 2.7.8. When I run python manage.py makemigrations , I get the following error: ValueError: Cannot serialize: <storages.backends.s3boto.S3BotoStorage object at 0x11116eed0> There are some values Django cannot serialize into migration files. And here is the relevant code: protected_storage = storages.backends.s3boto.S3BotoStorage( acl='private', querystring_auth=True, querystring_expire=3600, ) class Document

How to set-up a Django project with django-storages and Amazon S3, but with different folders for static files and media files?

妖精的绣舞 提交于 2019-11-26 21:11:06
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 Amazon's S3, so I have created a bucket for this. Using django-storages with the boto storage backend, I managed to upload collected statics to the S3 bucket: MEDIA_ROOT = '/media/' STATIC_ROOT = '/static/' DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage' AWS_ACCESS_KEY_ID = 'KEY_ID...' AWS_SECRET_ACCESS_KEY = 'ACCESS_KEY...' AWS_STORAGE_BUCKET_NAME = 'bucket-name' STATICFILES

How to set-up a Django project with django-storages and Amazon S3, but with different folders for static files and media files?

点点圈 提交于 2019-11-26 07:53:17
问题 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 Amazon\'s S3, so I have created a bucket for this. Using django-storages with the boto storage backend, I managed to upload collected statics to the S3 bucket: MEDIA_ROOT = \'/media/\' STATIC_ROOT = \'/static/\' DEFAULT_FILE_STORAGE = \'storages.backends.s3boto.S3BotoStorage\' AWS_ACCESS_KEY_ID