Skip to content

Django app to use Minio Server as file storage.

Notifications You must be signed in to change notification settings

fazpu/django_minio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Minio Storage

Django app to use Minio Server as file storage.

Intallation

At first, you need to have working minio server. How to do that you can found at Minio Quickstart Guide.

Install Django Minio Storage from pip:

pip install django-minio

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'
MINIO_SECURE = True
DEFAULT_FILE_STORAGE = 'django_minio.storage.MinioStorage'

Demo minio server and it's credentials can be found at Python Client Quickstart Guide.

If you want to use this module only at production server, include above settings only in production settings. So at local developer machine you will use django's default file storage.

More information about file storages can be found at Django Docs.

Currently tested only at Django 1.8.5.

About

Django app to use Minio Server as file storage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%