Nice file storage support for Django
Project description
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)
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
dj-storage-0.2.0.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file dj-storage-0.2.0.tar.gz
.
File metadata
- Download URL: dj-storage-0.2.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d900dd163522b942016d80c197ac25fdc75ca56ea55e901d8da5ce4ef626fb8a |
|
MD5 | 7ff8ee27da2c9b440fba8683201efa0d |
|
BLAKE2b-256 | c2216d794adcb38fc2a3060b995dbaca233c7a42caa1090e730d61ac9a868bbe |
File details
Details for the file dj_storage-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: dj_storage-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 782ca079db5163781f32007487610ae374fb139db075e4eb70af86c4eaafea08 |
|
MD5 | 6a2bb750a85855b7a0d0d145c449327f |
|
BLAKE2b-256 | 5e586821132e1a077d0b3bc277fd1dd87172d408ec5e70381957e53c66127a85 |