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.

Source Distributions

django-selectel-storage-0.3.1.zip (9.6 kB view hashes)

Uploaded Source

django-selectel-storage-0.3.1.tar.gz (4.9 kB view hashes)

Uploaded Source

django-selectel-storage-0.3.1.tar.bz2 (5.1 kB view hashes)

Uploaded Source

Built Distribution

django_selectel_storage-0.3.1-py2.py3-none-any.whl (7.4 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