Skip to main content

A backblaze b2 storage system for django

Project description

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

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_b2storage-1.0.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file django_b2storage-1.0.tar.gz.

File metadata

File hashes

Hashes for django_b2storage-1.0.tar.gz
Algorithm Hash digest
SHA256 a46e8f1cfa8bf6d8466ea721f20e2839365b7914f83df8664e6d8cefd02024ba
MD5 7ad27dcacf9563455936b434106c5b74
BLAKE2b-256 767a1c1110e06ce1b3dbd6917b876fdc28075a94f2580b7c678fdedd1eb1933d

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