change create_bucket to get, try and avoid these 409s"

This commit is contained in:
James Turk 2012-04-13 22:40:07 -04:00
parent 2fca8a23ac
commit b60ee969ca

View File

@ -14,7 +14,7 @@ class S3Storage(object):
@property @property
def bucket(self): def bucket(self):
if not self._bucket: if not self._bucket:
self._bucket = self.s3conn.create_bucket(settings.AWS_BUCKET) self._bucket = self.s3conn.get_bucket(settings.AWS_BUCKET)
return self._bucket return self._bucket
def _get_opt(self, doc_class, setting, default=None): def _get_opt(self, doc_class, setting, default=None):