Skip to content

vit-ivanov/django-selectel-storage

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 95.9%
  • Makefile 4.1%