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.0.3.tar.gz (2.8 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.0.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for django_minio_storage_idtinc-1.0.3.tar.gz
Algorithm Hash digest
SHA256 752c8f4f90cc01feb479d7a2d7da01054373e134f7abb4c5402f07e0020fb9e9
MD5 8888365890b107f8ec865e855e4aaa4b
BLAKE2b-256 e3d776448a1cda5da582fd798ac9045bfc2c19d3b032a9777072772d9ee07f0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_minio_storage_idtinc-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8c92e07e6a62ce1adcea262e59dd7d2bb2f7e71bb1a0373ce2ec9286e026d991
MD5 1fcb0ec0bd340166fb5289f23eda2e44
BLAKE2b-256 7b53628d39e78e09c87ca0d782f76b15c1654e92b3ef921197018f269e41a95e

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