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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f040fd6ccd6992729f327c809f5ba4721d2a0d346c3d6f176f10d4ec6687ba30 |
|
MD5 | 30a298d97ff48bc7321dad436bea0664 |
|
BLAKE2b-256 | 58bfb5b5e0cfa6c6f101c03cf16e3f55c762b5efb130b161170b319039784ad2 |
Close
Hashes for django_cloud_storage-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bea295ab1538a0f9eb8bc0cd7bef9e8bab7eb09682b1454e42853c2fda45129e |
|
MD5 | ba05761968386afd7b44183694e98f85 |
|
BLAKE2b-256 | 768d82dd730ec84834d88e0db498c2e476dbbfdafeef59f3b0ef242cdc63c2de |