django-localdevstorage
django-localdevstorage is a set of storage backends that helps during development. Instead of having to copy all user generated media from the live site for local development, the storage backends provided by django-localdevstorage will download media files that are not available locally “on demand”.
Installation
Set one of the provided storage backends in your settings.py. These are:
HTTP: DEFAULT_FILE_STORAGE = 'localdevstorage.http.HttpStorage'
(more will follow)
HTTP
Set the fallback domain that should be used to fetch missing files. This is usually the protocol (http or https) and the domain your live site:
LOCALDEVSTORAGE_HTTP_FALLBACK_DOMAIN = 'http://www.example.com/'
If your server is secured with HTTP basic auth, you can provide a username and password:
LOCALDEVSTORAGE_HTTP_USERNAME = 'foo' LOCALDEVSTORAGE_HTTP_PASSWORD = 'bar'
SFTP
There are three settings that need to be configured for the SFTP backend:
LOCALDEVSTORAGE_SFTP_USER
LOCALDEVSTORAGE_SFTP_HOST
LOCALDEVSTORAGE_SFTP_ROOT_PATH: this should be the MEDIA_ROOT on the remote machine in most cases.
Caveats
Since django-localdevstorage extends a Django storage backend (FileSystemStorage to be precise), only code that uses Django’s file storage abstraction works with django-localdevstorage. Code that bypasses Django and accesses files directly will not benefit.
Metadata
Release files for django-localdevstorage 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-localdevstorage-0.5.tar.gz | 7.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_localdevstorage-0.5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 15.0 kB
Release files / django-localdevstorage-0.5.tar.gz
| Download URL | django-localdevstorage-0.5.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db1b2719dff305b91a117c9391887c5c391600acba6f2e41ecea5efee47d8e76
|
|
BLAKE2b-256 checksum How to use checksums |
92711c12dff431c46d2142fb917fcad68d50e86e8a7a2629788904af7a4fe5fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_localdevstorage-0.5-py2.py3-none-any.whl
| Download URL | django_localdevstorage-0.5-py2.py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
181939624a9dca244b0a72837a84baa1c4045ba47f3cd56632c21eb87298498d
|
|
BLAKE2b-256 checksum How to use checksums |
9bbfee557b34c561647b8c43f5e0fc574ec18b2bce42c0db04beadc918be7c71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-localdevstorage 0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.