Cloudflare Images integration for Django
Project description
# django-cloudflare-images
This is a Django library to add support to Cloudflare Images to the ImageField.
## Installation
`sh pip install django-cloudflare-images `
## Setup
You need to add the following your settings.py:
`python DEFAULT_FILE_STORAGE = "cloudflare_images.storage.CloudflareImagesStorage" CLOUDFLARE_IMAGES_ACCOUNT_ID = "XXX" CLOUDFLARE_IMAGES_API_TOKEN = "YYY" CLOUDFLARE_IMAGES_ACCOUNT_HASH = "ZZZ" `
## Development
Installing for development:
`sh make install `
Cleaning the installation:
`sh make clean `
Format the code:
`sh make format `
Running all tests:
`sh make test `
Setup.py commands:
`sh make package-develop make package-build make package-install make package-sdist `
## TODO
This is a list of non exhaustive list of things I would like to add to the project:
Ability to pass down variants instead of hardcoding “public”
Support custom domains (optional)
Functional tests with real credentials (to be passed in the environment)
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
Hashes for django-cloudflare-images-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2c7976ec16c99ab83bbf21f87068c1993b979a8d636e425d1b04a332ed7d5ca |
|
MD5 | cef77db8b75233d67a84647b2d2ea090 |
|
BLAKE2b-256 | a5b180f0dd95718d69ef70cf9a9d8fad15cb60477670c0ab86086c09b5691923 |