Skip to main content

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

Project description

Travis CI build status Code coverage percentage Latest version on PyPI Wheel Status Supported Python versions

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

Dependencies

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_USERNAME = 'xxxxxx'
SELECTEL_PASSWORD = 'container_password'
SELECTEL_CONTAINER_NAME = 'container_name'

If you have assigned custom domain with your selectel container, you need add the SELECTEL_CONTAINER_NAME attribute (trailing slash not matters)

SELECTEL_CONTAINER_URL = 'http://your.domain/'

Caveats

  • In python 3.x ContentFile with text mode content (not binary one) will causes TypeError due requests restrictions

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_selectel_storage-0.3.1-py2.py3-none-any.whl (7.4 kB) Copy SHA256 hash SHA256 Wheel 2.7
django-selectel-storage-0.3.1.tar.bz2 (5.1 kB) Copy SHA256 hash SHA256 Source None
django-selectel-storage-0.3.1.tar.gz (4.9 kB) Copy SHA256 hash SHA256 Source None
django-selectel-storage-0.3.1.zip (9.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page