Installation¶
Install from PyPI¶
Requirements¶
| Dependency | Version |
|---|---|
| Python | 3.9+ |
| Django | 4.2 – 6.1 |
| boto3 | 1.28+ |
Django Compatibility¶
| Django | Python |
|---|---|
| 4.2 | 3.9 – 3.12 |
| 5.0 | 3.10 – 3.12 |
| 5.1 | 3.10 – 3.13 |
| 5.2 | 3.10 – 3.14 |
| 6.1 | 3.12 – 3.14 |
Setup¶
Step 1 — Add to INSTALLED_APPS¶
Step 2 — Configure connection¶
# settings.py
RUSTFS_ENDPOINT = "http://localhost:9000"
RUSTFS_ACCESS_KEY = "your-access-key"
RUSTFS_SECRET_KEY = "your-secret-key"
Tip
You only need these three settings to get started. All other settings have sensible defaults.
Step 3 — Set as default storage¶
Step 4 — Initialize buckets¶
Step 5 — Verify everything works¶
Expected output
🔍 Checking RustFS health...
Endpoint: http://localhost:9000
Bucket: django-media
✅ Bucket 'django-media' is accessible
Response time: 12.3ms
✅ List operation works (0 objects visible)
🧪 Running upload/download roundtrip test...
✅ Upload/download roundtrip successful
✅ RustFS health check completed successfully!