Custom storage backend tailored for a proprietary cloud storage service.
Project description
Django Cloud Storage
Django Cloud Storage is a Python package that provides a custom storage backend designed for seamless integration with proprietary cloud storage service.
Installation
pip install django-cloud-storage
Configuration
In your Django settings file, set the following values:
CLOUD_STORAGE_URL = 'https://your-cloud-service.com'
CLOUD_STORAGE_API_TOKEN = 'your-api-token'
CLOUD_STORAGE_PROJECT_ALIAS = 'myproject'
Usage
To integrate the Cloud Storage with a Django model, follow these steps:
-
Import the required models and CloudStorage:
from django_cloud_storage.storage import CloudStorage
-
Define your Django model, using
CloudStorage
as the storage backend for aFileField
:class MyModel(models.Model): file_field = models.FileField(storage=CloudStorage) def __str__(self): return self.file_field.name
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-cloud-storage-1.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1a4b9cda73dcbda7291d8447bed934db3fc1d1920ea20db8f60eee85b652219 |
|
MD5 | b298a7eaa8a3605cb61178923099a5c1 |
|
BLAKE2b-256 | 706d12e3e42aa9006f710795538d613a0d6e9f3edfde4dad387d288d99d73a21 |
Close
Hashes for django_cloud_storage-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c91bbf5fa26e5b83e046aa98a5bd10a223a52baca69115046b3da2f4bb63db6 |
|
MD5 | faecccd9642598b9b35a1d5a73328a09 |
|
BLAKE2b-256 | 430a972a68d6d6db3e40505114143883dbdce8196335643eb6e5cdf808b3b5ed |