This application allows you easily save media and static files into Selectel cloud storage.
- 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.