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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62426040389762c8a907b0b757799b16d995c847839bf60822cbeea2eb27b27e |
|
MD5 | 8e53d562dc7f464ff434b230fd5d8d48 |
|
BLAKE2b-256 | a0e01f096f8667583b7018765101a609c27cbdc54b20b171f2ca03bfc646676a |
Close
Hashes for django_cloud_storage-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c53c6e4abbc0b073577c807dfeefd89c59f4924eb6de03c608780e1c703951ba |
|
MD5 | 876c89362ac6541358d60a5b1b8de6ce |
|
BLAKE2b-256 | 8ce5dc2e3fb2fa57482482d3546762707156f7bb8ab3a77061464f938d2caf2d |