Nice file storage support for Django
This is a single, generic file storage backend for Django, for storing the files on any storage service with a HTTP/REST API.
Both Google Storage and AWS S3 provide HTTP/REST API for file storage.
The only thing that differs between the services is the authentication method. Both Google and AWS use their own propertiary authentication methods, that have to be implemented. Right now only Google Storage auth is implemented.
Requirements
- Django 2.0+
Installation
pip install dj-storage
settings.py
- Set
DEFAULT_FILE_STORAGE = 'dj_storage.HTTPStorage' - Set
MEDIA_URL = 'https://storage.googleapis.com/your-bucket-name/' - Provide GCP Application Default Credentials
Planned features
- Support for AWS S3 auth - requires fixing aws-requests-auth #45
- Support for standard auth mechanisms (like HTTP Basic auth)
Metadata
Release files for dj-storage 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dj-storage-0.2.0.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dj_storage-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / dj-storage-0.2.0.tar.gz
| Download URL | dj-storage-0.2.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d900dd163522b942016d80c197ac25fdc75ca56ea55e901d8da5ce4ef626fb8a
|
|
BLAKE2b-256 checksum How to use checksums |
c2216d794adcb38fc2a3060b995dbaca233c7a42caa1090e730d61ac9a868bbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Release files / dj_storage-0.2.0-py3-none-any.whl
| Download URL | dj_storage-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
782ca079db5163781f32007487610ae374fb139db075e4eb70af86c4eaafea08
|
|
BLAKE2b-256 checksum How to use checksums |
5e586821132e1a077d0b3bc277fd1dd87172d408ec5e70381957e53c66127a85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|