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
This application allows you easily save media and static files into Selectel cloud storage.
Installation
Install the package
pip install django-selectel-storage
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44c02584e5a5261d46a3f495db088df8780e05ce990bbfdfbe8b8f6171270126 |
|
MD5 | f5b1b099f5c5bf4c095fceb8d9ee57cb |
|
BLAKE2b-256 | 2a6468a40e8ed937b2c9a297478955f8f2200bb3fdc2e3af0216d37152957a38 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7069a65aff4d7ac8afb6f9f966b54d26fc312ef364a71295223ea4773ab8f5cb |
|
MD5 | ca04e49fad76e3410ae6bf35b62147bf |
|
BLAKE2b-256 | bd1c5a0fa0b2775ea5b1c16cec1441833efa8691d4a725c9e24cc591b29fc5db |