3 ms·
Good news for django-storages users – this is off by default: https://bitbucket.org/david/django-storages/src/cb7366693ce16d462b48535e575561f4d2efad0c/storages
by acdha 13y ago
Good news for django-storages users – this is off by default:
https://bitbucket.org/david/django-storages/src/cb7366693ce16d462b48535e575561f4d2efad0c/storages/backends/s3boto.py?at=default#cl-332 https://bitbucket.org/david/django-storages/src/cb7366693ce1...
- djm_ 13y agoTo further add: the PyPI version hasn't been updated since March 2013 but the last time the relevant lines were changed was January 2013, so you should still be good with the PyPi version (assuming changes from then went out in the last release). The setting in question is: AWS_AUTO_CREATE_BUCKET.
- masklinn 13y agoAs far as I can see, that means this code is broken: if no validation is done it won't raise S3ResponseError (because there's no S3 query involved), and will never raise `ImproperlyConfigured`. And if you ask for your buckets to be auto-created, it will silently do one more request per (existing) bucket, on top of the auto-creation one. And the conditional inside the except is useless, of course, since you can only be in the except if `auto_create_bucket` is set.