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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file django-selectel-storage-1.0.2.tar.gz.

File metadata

  • Download URL: django-selectel-storage-1.0.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.2

File hashes

Hashes for django-selectel-storage-1.0.2.tar.gz
Algorithm Hash digest
SHA256 44c02584e5a5261d46a3f495db088df8780e05ce990bbfdfbe8b8f6171270126
MD5 f5b1b099f5c5bf4c095fceb8d9ee57cb
BLAKE2b-256 2a6468a40e8ed937b2c9a297478955f8f2200bb3fdc2e3af0216d37152957a38

See more details on using hashes here.

File details

Details for the file django_selectel_storage-1.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: django_selectel_storage-1.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.2

File hashes

Hashes for django_selectel_storage-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7069a65aff4d7ac8afb6f9f966b54d26fc312ef364a71295223ea4773ab8f5cb
MD5 ca04e49fad76e3410ae6bf35b62147bf
BLAKE2b-256 bd1c5a0fa0b2775ea5b1c16cec1441833efa8691d4a725c9e24cc591b29fc5db

See more details on using hashes here.

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