Skip to main content

Django Storage backend for MinIO

Project description

Django MinIO Storage

Django Storage backend using MinIO.

Install

pip install django-minio-storage-idtinc

Usage

# settings.py
MINIO_BUCKET_NAME = ""
MINIO_ENDPOINT = "" # s3.example.com
MINIO_ACCESS_KEY = ""
MINIO_SECRET_KEY = ""
MINIO_SECURE = False  # True or False

# Settings for Django MinIO Storage

# For Django 4.2+
STORAGES = {
    "default": {
        "BACKEND": "django_minio_storage.MinioStorage",
    },
}

# Or with options
STORAGES = {
    "default": {
        "BACKEND": "django_minio_storage.MinioStorage",
        "OPTIONS": {
            "bucket_name": "",
            "endpoint": "", # s3.example.com
            "access_key": "",
            "secret_key": "",
            "secure": True,  # True or False
        },
    },
}

# For Django versions below 4.2
DEFAULT_FILE_STORAGE = "django_minio_storage.MinioStorage"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_minio_storage_idtinc-1.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_minio_storage_idtinc-1.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file django_minio_storage_idtinc-1.1.0.tar.gz.

File metadata

File hashes

Hashes for django_minio_storage_idtinc-1.1.0.tar.gz
Algorithm Hash digest
SHA256 62f3c3a3923888f67c69fb08460430f28ad58be61fc43924b99f11c7c0611f14
MD5 c9d42d5ca9897aabd4e66afc64f8da37
BLAKE2b-256 ba7d77cb2fb0914776eb6a06d654e10b43159559adb0bdd0ba4cfb1feadd9bad

See more details on using hashes here.

File details

Details for the file django_minio_storage_idtinc-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_minio_storage_idtinc-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 300ac21c22ce5d3567012a2760ae51fb9ba5ebfed1c689a60265754c28e8c812
MD5 cab297b1ad70267c0383b5a0c3eca611
BLAKE2b-256 6237fd9aeed3deb3523e4616f7c7f766cef8b1affed25600b0cd92d487db12c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page