Fixed typos in posts.org

This commit is contained in:
Roger Gonzalez 2023-01-14 14:57:41 -03:00
parent 77e8be6694
commit b086abeb4f
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6
3 changed files with 6 additions and 29 deletions

View File

@ -2,7 +2,7 @@
title = "Removing comments from my blog" title = "Removing comments from my blog"
author = ["Roger Gonzalez"] author = ["Roger Gonzalez"]
date = 2023-01-14 date = 2023-01-14
lastmod = 2023-01-14T12:06:53-03:00 lastmod = 2023-01-14T14:51:21-03:00
categories = ["announcements"] categories = ["announcements"]
draft = false draft = false
weight = 2001 weight = 2001

View File

@ -1,37 +1,16 @@
+++ +++
title = "Using MinIO to upload to a local S3 bucket in Django" title = "Using MinIO to upload to a local S3 bucket in Django"
author = ["Roger Gonzalez"] author = ["Roger Gonzalez"]
date = 2021-01-10T11:30:48-03:00 date = 2021-01-10
lastmod = 2022-12-29T09:34:56-03:00 lastmod = 2023-01-14T14:56:18-03:00
tags = ["python", "django", "minio", "docker", "", "dockercompose"] tags = ["python", "django", "minio", "docker", "", "dockercompose"]
categories = ["programming"] categories = ["programming"]
draft = false draft = false
weight = 2001 weight = 2001
+++ +++
Hi everyone!
Some weeks ago I was doing a demo to my teammates, and one of the things that
was more suprising for them was that I was able to do S3 uploads locally using
"MinIO".
Let me set the stage:
Imagine you have a Django ImageField which uploads a picture to a AWS S3 bucket.
How do you setup your local development environment without using a
"development" AWS S3 Bucket? For that, we use MinIO.
## What is MinIO? {#what-is-minio}
According to their [GitHub README](https://github.com/minio/minio):
> MinIO is a High Performance Object Storage released under Apache License v2.0.
It is API compatible with Amazon S3 cloud storage service.
So MinIO its an object storage that uses the same API as S3, which means that we So MinIO its an object storage that uses the same API as S3, which means that we
can use the same S3 compatible libraries in Python, like [Boto3](https://pypi.org/project/boto3/) and can use the same S3 compatible libraries in Python, like [Boto3](https://pypi.org/project/boto3/) and [django-storages](https://pypi.org/project/django-storages/).
[django-storages](https://pypi.org/project/django-storages/).
## The setup {#the-setup} ## The setup {#the-setup}

View File

@ -14,14 +14,12 @@ All posts in here will have the category set to /programming/.
** Using MinIO to upload to a local S3 bucket in Django :python::django::minio::docker::dockercompose: ** Using MinIO to upload to a local S3 bucket in Django :python::django::minio::docker::dockercompose:
:PROPERTIES: :PROPERTIES:
:ID: b693b4e8-0550-4238-8a64-30866a47768a :ID: b693b4e8-0550-4238-8a64-30866a47768a
:END:
:PROPERTIES:
:EXPORT_FILE_NAME: using-minio-to-upload-to-a-local-s3-bucket-in-django :EXPORT_FILE_NAME: using-minio-to-upload-to-a-local-s3-bucket-in-django
:EXPORT_DATE: 2021-01-10 :EXPORT_DATE: 2021-01-10
:END:
So MinIO its an object storage that uses the same API as S3, which means that we So MinIO its an object storage that uses the same API as S3, which means that we
can use the same S3 compatible libraries in Python, like [[https://pypi.org/project/boto3/][Boto3]] and can use the same S3 compatible libraries in Python, like [[https://pypi.org/project/boto3/][Boto3]] and [[https://pypi.org/project/django-storages/][django-storages]].
[[https://pypi.org/project/django-storages/][django-storages]].
*** The setup *** The setup
:PROPERTIES: :PROPERTIES: