A simple wrapper for Rclone as a Django storage
Project description
Django Rclone Storage
A simple wrapper for Rclone as a Django storage.
Usage
First, add these settings to your Django settings:
# The remote name in your rclone.conf
RCLONE_REMOTE = 'onedrive'
# Remote path where all the files will be uploaded. Default: /
RCLONE_REMOTE_ROOT = '/'
# Local path where your rclone.conf locates. If it's not set, rclone should use the default .conf file.
RCLONE_CONFIG_PATH = '/path/to/config'
And, set the default storage:
DEFAULT_FILE_STORAGE = 'rclonestorage.rclone_remote.RcloneRemoteStorage'
Or, you can just pass the settings to a RcloneRemoteStorage object and use it in the FileField:
file = models.FileField(
storage=RcloneRemoteStorage(remote='remote',
root_path='/',
config_path='/path/to/config')
)
Reference
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for django-rclone-storage-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7a6ecae7367949ff39ecc70e72287917d2c603a2e1c8596ac7795bf2e683baf |
|
MD5 | 29a57200cc6d7d7a8bc0f57dd41b6902 |
|
BLAKE2b-256 | 154991230d8bbd75112a2d085c3253ec467015dc3762adf2c47abca1c7bca207 |
Close
Hashes for django_rclone_storage-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 434e8df742fc435ba981aa02f2a8d148b80ed69bce7a166158f00c33f24444de |
|
MD5 | 78e2b702a5176ea624062d3d768f5243 |
|
BLAKE2b-256 | aeb32d9e45e09ac9fbeae146c233fcab95283255e79d11abf4e1bc9adec34852 |