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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file django_cloud_storage-1.0.6.tar.gz.

File metadata

  • Download URL: django_cloud_storage-1.0.6.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for django_cloud_storage-1.0.6.tar.gz
Algorithm Hash digest
SHA256 686959fdf79585266a822371a09f39335de1b30cdf7c4c631ff17e324ff8b2dd
MD5 3a53eddf6cf9ff6cb13fd8064346f0a3
BLAKE2b-256 5eef05dfff4fa06eac92c73fd3e15c16b004c04e644a71f31787d6b1d329d86f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_cloud_storage-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 68811641a64ca210f051683d95c938e6c0c79219082ddb29abffa7df12e44ac8
MD5 d2dd4f763018ea0f17b9b1bd3657c920
BLAKE2b-256 a1de068704531fcaf6a0cd3ebb614d5c40ba5b4dde3f54e28ecc577e05a0a547

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