Skip to content

marazmiki/django-selectel-storage

Repository files navigation

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.