No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
django_selectel_storage
.coveragerc
.gitignore
.travis.yml
CHANGELOG.rst
Makefile
README.rst
setup.cfg
setup.py
tests.py
tox.ini

README.rst

django-selectel-storage

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