Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django Storage Backend for S3

I'm looking for a good Django custom storage backend for use with Amazon S3.

I've been googling around and found a lot of blog posts with code snippets or half-baked gist.github.com one-off jobs. But I can't seem to find a solid, well-tested one.

Is there a widely accepted standard Amazon S3 Django custom storage backend out there? It doesn't particularly matter to me what Python backend library it uses--i.e., either S3.py or boto are fine.

like image 393
Chris W. Avatar asked Feb 18 '11 18:02

Chris W.


People also ask

How do I upload files to AWS S3 using Django REST framework?

Building a simple Django Rest API application Execute the commands below to set up the project. Add the code snippet below to urls.py file in the dropboxer project directory. Create serializers.py and urls.py files in the uploader app. In models.py file, we create a simple model that represents a single file.

Can you store databases in S3?

S3 is capable of storing diverse and generally unstructured data, but it's also suited for hierarchical data and all kinds of structured information.


1 Answers

Have you checked out django-storages? I would lean towards the boto library as I have had good experiences with boto.

like image 193
Kekoa Avatar answered Sep 25 '22 19:09

Kekoa