Skip to content

ozcanyarimdunya/django_minio_demo

Repository files navigation

Django Mini Storage Demo

django-minio-storage enables using minio as django static and media file storages.

We are using minio for storing media files only.

In-Local-Development In-Production
statics Saved in django files and served by django Saved in django files and served by WhiteNoise
medias Saved in django files and served by django Saved in minio and served by minio(not finished)

Quick look

config/base.py
config/production.py

Installation

You need to run at least 4 minio instances.

docker-compose -f docker-compose-minio.yml -f docker-compose.yml up -d --build

Development

Install all requirements

make

You need a superuser to access admin pages( /admin/ ). To create a superuser,

make superuser

Run the application

make run

TODO

  • Provide direct download link

  • Provide Serve by minio as public