コード例 #1
0
def delete_from_s3(key):
    conn = Connection()
    return conn.delete_object_from_s3(key)
コード例 #2
0
def get_from_s3(key):
    conn = Connection()
    return conn.get_object_from_s3(key)
コード例 #3
0
def get_from_s3_to_filename(key, filename):
    conn = Connection()
    return conn.get_object_from_s3_to_filename(key, filename)
コード例 #4
0
def send_to_s3(key, filename):
    conn = Connection()
    filepath = os.path.join(settings.MEDIA_ROOT, filename)
    return conn.upload_object_to_s3(key, filepath)
コード例 #5
0
ファイル: utils.py プロジェクト: 465060874/screenbird
def delete_from_s3(key):
    conn = Connection()
    return conn.delete_object_from_s3(key)
コード例 #6
0
ファイル: utils.py プロジェクト: 465060874/screenbird
def get_from_s3_to_filename(key, filename):
    conn = Connection()
    return conn.get_object_from_s3_to_filename(key, filename)
コード例 #7
0
ファイル: utils.py プロジェクト: 465060874/screenbird
def get_from_s3(key):
    conn = Connection()
    return conn.get_object_from_s3(key)
コード例 #8
0
ファイル: utils.py プロジェクト: 465060874/screenbird
def send_to_s3(key, filename):
    conn = Connection()
    filepath = os.path.join(settings.MEDIA_ROOT, filename)
    return conn.upload_object_to_s3(key, filepath)