Skip to main content

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 a FileField:

    class MyModel(models.Model):
        file_field = models.FileField(storage=CloudStorage)
    
        def __str__(self):
            return self.file_field.name
    

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-cloud-storage-1.0.5.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

django_cloud_storage-1.0.5-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file django-cloud-storage-1.0.5.tar.gz.

File metadata

  • Download URL: django-cloud-storage-1.0.5.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for django-cloud-storage-1.0.5.tar.gz
Algorithm Hash digest
SHA256 62426040389762c8a907b0b757799b16d995c847839bf60822cbeea2eb27b27e
MD5 8e53d562dc7f464ff434b230fd5d8d48
BLAKE2b-256 a0e01f096f8667583b7018765101a609c27cbdc54b20b171f2ca03bfc646676a

See more details on using hashes here.

File details

Details for the file django_cloud_storage-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for django_cloud_storage-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c53c6e4abbc0b073577c807dfeefd89c59f4924eb6de03c608780e1c703951ba
MD5 876c89362ac6541358d60a5b1b8de6ce
BLAKE2b-256 8ce5dc2e3fb2fa57482482d3546762707156f7bb8ab3a77061464f938d2caf2d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page