Skip to main content

A Django storage backend allowing you to easily save user-generated and static files inside Selectel Cloud storage rather than a local filesystem, as Django does by default.

Project description

https://badge.fury.io/py/django-selectel-storage.svg The project license Travis CI build status Code coverage percentage Wheel Status Supported Python versions Supported Django versions Documentation Status Codacy Badge

This application allows you easily save media and static files into Selectel cloud storage.

Installation

  1. Install the package
pip install django-selectel-storage
  1. Add to your settings module:
DEFAULT_FILE_STORAGE = 'django_selectel_storage.storage.SelectelStorage'
SELECTEL_STORAGES = {
    'default': {
        'USERNAME': 'xxxx_user1',
        'PASSWORD': 'secret',
        'CONTAINER_NAME': 'bucket',
    },
    'yet-another-schema': {
        'USERNAME': 'yyyy_user2',
        'PASSWORD': 'mystery',
        'CONTAINER_NAME': 'box',

    },
}

Please see details in the documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-selectel-storage, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django_selectel_storage-1.0.1-py2.py3-none-any.whl (8.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-selectel-storage-1.0.1.tar.gz (7.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page