Django Storage System for WebDAV
Django Storage System for WebDAV is a storage system for Django that allows the user to use a WebDAV server as file storage for media files and also static files.
This work is licensed under the 3-clause BSD license, for more information see LICENSE.txt
Prerequisites
Django v2.2 and Python v3.5 (or higher)
Building and installing from source
To install the module in the current virtual environment.
python3 setup.py clean --all install
To instead install in your home directory.
python3 setup.py clean --all install --user
Configuration Settings
Following parameters are used by the generic file storage system to connect and authenticate against the WebDAV server.
STORAGE_WEBDAV_URL = "https://www.example.org/media/"
STORAGE_WEBDAV_USERNAME = "username"
STORAGE_WEBDAV_PASSWORD = "password123"
To enable the storage system, see Managing files in the Django documentation.
In short; the actual configuration for the generic file storage is DEFAULT_FILE_STORAGE, i.e.
DEFAULT_FILE_STORAGE = "django_storage_webdav.WebDavStorage"
To use the storage system for static files, use the following parameters.
STATIC_STORAGE_WEBDAV_URL="https://www.example.org/static/"
STATIC_STORAGE_WEBDAV_USERNAME="username"
STATIC_STORAGE_WEBDAV_PASSWORD="password123"
And then activate the storage system by setting the STATICFILES_STORAGE parameter.
STATICFILES_STORAGE = "django_storage_webdav.StaticWebDavStorage"
Installation in local package index (e.g. DevPi)
The commands below builds and install the artifacts in a local package index
(DevPi) at http://devpi.myserver.lan/ under the staging index.
python3 setup.py clean --all sdist bdist_wheel
python3 -m pip install --upgrade twine
python3 -m twine register --verbose --repository staging dist/*tar.gz
python3 -m twine upload --repository-url http://devpi.myserver.lan/ --repository staging dist/*
Metadata
Release files for django-storage-webdav 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-storage-webdav-0.1.2.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_storage_webdav-0.1.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 9.8 kB
Release files / django-storage-webdav-0.1.2.tar.gz
| Download URL | django-storage-webdav-0.1.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11fdce601e50e62f9455e069ca08f3064e5c1cc0d25b1d4e98234b186689bccf
|
|
BLAKE2b-256 checksum How to use checksums |
ed964d23b3a016e3b2b52f0f812ad521dafd53a4c11971e5e1262038bc65794b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
|
Release files / django_storage_webdav-0.1.2-py2.py3-none-any.whl
| Download URL | django_storage_webdav-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
307a83fa428a7b4b95920fd95f4b6f0d314cb706cbc91621949802cc620b00bd
|
|
BLAKE2b-256 checksum How to use checksums |
fb5424aad856e37ef08b3637badb18b6978d133d49b8f24d8ebbfeb1947db311
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
|