Skip to main content
Django Minio Storage
====================
Django app to use `Minio Server <https://github.com/minio/minio>` as file storage.

Intallation
-----------
At first, you need to have working minio server. How to do that you can found at `Minio Quickstart Guide <https://docs.minio.io/docs/minio>`.

Install Django Minio Storage from pip:
```
pip install django-minio
```
And include django-minio to your installed apps.

Add following keys to your projects settings file:
```
MINIO_SERVER = 'your_minio_server_address'
MINIO_ACCESSKEY = 'your_minio_server_access_key'
MINIO_SECRET = 'your_minio_server_secret_key'
MINIO_BUCKET = 'my_bucket'
```
Demo minio server and it's credentials can be found at `Python Client Quickstart Guide <https://docs.minio.io/docs/python-client-api-reference>`.

Usage
-----
Add `storage` attribute to your ImageField:
```
from django_minio.storage import MinioStorage

photo = models.ImageField(upload_to='photos/', storage=MinioStorage())
```
So the uploaded file will be loaded the `photos` directory in your project's MEDIA directory. Then in your Minio
server's bucket will be created same directory `photos` and the file will be loaded there.

Release files for django-minio 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-minio 0.2
File Size Uploaded
django_minio-0.2.tar.gz 2.0 kB Details

Release files / django_minio-0.2.tar.gz

Download URL django_minio-0.2.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
49c849accc74d70ce43cc8db1e63382fe8ac7966ea9eb46acc771b2f0ba90be8
BLAKE2b-256 checksum
How to use checksums
2681ae0c7aca69bf0f5e84dc413090f35ae11d7014510b95254ebc6410fe35b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

2.0

1 release file

1.9

1 release file

1.8

1 release file

1.7

1 release file

1.6

1 release file

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

This release

0.2 This release

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page