High-level, free and open source Python Web framework
What is Amazon S3?
Amazon Simple Storage Service (Amazon S3) is an online web service offered by Amazon, providing the ability to store and retrieve any amount of data, anytime from anywhere on the network, a file hosting. With the help of Amazon S3, high scalability, reliability, high speed and inexpensive storage infrastructure are achieved. First appeared in March 2006 in the US and in November 2007 in Europe.
Amazon S3 is used by many other services for storing and hosting files. For example, Dropbox and Ubuntu One, Twitter and Woot.com, and even Minecraft uses it.
How to use Amazon S3 in Django Project?
The Amazon S3 service can be used to handle static assets and the user uploaded files, that is, the media assets.
In the tutorial, you will find three sections:
- Working with static assets only
- Working with static and media assets
- Mixing public assets and private assets
Additionally, you will learn how to install Amazon S3
You will also need to install two Python libraries:
The boto3 library is a public API client to access the Amazon Web Services (AWS) resources, such as the Amazon S3. It’s an official distribution maintained by Amazon.
Multi-paradigm programming language with easy-to-use syntax and many features
The django-storages is an open-source library to manage storage backends like Dropbox, OneDrive and Amazon S3. It’s very convenient, as it plugs in the built-in Django storage backend API. In other words, it will make your life easier, as it won’t drastically change how you interact with the static/media assets.
Full tutorial is available at SimpleIsBettterThanComplex.