Skip to main content

Django Backblaze B2 Storage

A backblaze B2 storage system for django

Description

django-b2storage is a storage system for django using the cloud service Backblaze B2.

Installation

To install django-b2storage:

$ pip install django_b2storage

Then in your settings file, add the following:

DEFAULT_FILE_STORAGE = 'django_b2storage.backblaze_b2.B2Storage'
B2_ACCOUNT_ID = 'your_account_id'
B2_APPLICATION_KEY = 'your_application_key'
B2_BUCKET_NAME = 'your_bucket_name'
B2_BUCKET_ID = 'your_bucket_id'
And That’s It!!!
You will now be able to refer to user uploaded files using:
object_with_file.file.url()

Tutorial

To see this in action alongside with Heroku, see my tutorial here

Metadata

Release files for django_b2storage 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django_b2storage 1.0
File Size Uploaded Provenance
django_b2storage-1.0.tar.gz 3.4 kB Without provenance Details

Release files / django_b2storage-1.0.tar.gz

Download URL django_b2storage-1.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a46e8f1cfa8bf6d8466ea721f20e2839365b7914f83df8664e6d8cefd02024ba
BLAKE2b-256 checksum
How to use checksums
767a1c1110e06ce1b3dbd6917b876fdc28075a94f2580b7c678fdedd1eb1933d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django_b2storage 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page