django-selectel-storage

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.


Keywords
django, selectel, storage, remote, http, cloud, python, selectel-api
License
MIT
Install
pip install django-selectel-storage==1.0.2

Documentation

django-selectel-storage

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.