No project description provided
Project description
When the production site uploads folder gets really big you don’t want to rsync everything to your local machine just to fix a few bugs. Only download what is needed, right?
That’s what this storage class does.
Usage
Make sure that you only use this if DEBUG = True
Add the following settings:
DEFAULT_FILE_STORAGE = 'http_fallback_storage.FallbackStorage' FALLBACK_STORAGE_URL = 'http://example.com/media/'
Optionally, configure logging so that it’s easy to see why page loads would be slow when fetching media files. Either of the following snippets should be fine when added to your settings file:
import http_fallback_storage LOGGING = http_fallback_storage.LOGGING
or:
# LOGGING has already been defined import http_fallback_storage LOGGING.update(http_fallback_storage.LOGGING)
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
File details
Details for the file django-http-fallback-storage-1.3.2.tar.gz
.
File metadata
- Download URL: django-http-fallback-storage-1.3.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1058a05ff6ed8fb6590b41fdc8fd3c52ce72035ad3e831dbb92665bf56392bf0 |
|
MD5 | 9cc8373908fecfacc5796fafaa3c0511 |
|
BLAKE2b-256 | 39b10bc746b3b776e8882fb86b9130643dd38bee6bb7ea99ffe43cbe4a2557ac |
File details
Details for the file django_http_fallback_storage-1.3.2-py2.py3-none-any.whl
.
File metadata
- Download URL: django_http_fallback_storage-1.3.2-py2.py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e4ecb5cf15101b1523a4ab34094beefb36ea7f96efb2c0140b95c3428065366 |
|
MD5 | 64d9e566e84d9ebaff4fff8ac3ca0578 |
|
BLAKE2b-256 | 703f48802d7326bb5357e55fe0fe80a5d8eda735b324e5fc93d86b01f7ebdc94 |