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.

Source Distribution

django-selectel-storage-1.0.2.tar.gz (8.1 kB view hashes)

Uploaded Source

Built Distribution

django_selectel_storage-1.0.2-py2.py3-none-any.whl (8.9 kB view hashes)

Uploaded Python 2 Python 3

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