Commit 62bef12e by Piotr Mitros

Adds support for auth. Note: UNTESTED (but will be in a few minutes, so if you…

Adds support for auth. Note: UNTESTED (but will be in a few minutes, so if you see this later, tested)
parent 514607d7
......@@ -34,7 +34,9 @@ elif djfs_settings['type'] == 's3fs':
from fs.s3fs import S3FS
from boto.s3.connection import S3Connection
from boto.s3.key import Key
s3conn = S3Connection()
key_id = djfs_settings.get('AWS_ACCESS_KEY_ID', None)
key_secret = djfs_settings.get('AWS_SECRET_ACCESS_KEY', None)
s3conn = S3Connection(aws_access_key_id=key_id, aws_secret_access_key=key_secret)
else:
raise AttributeError("Bad filesystem: "+str(djfs_settings['type']))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment