Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-cloudflare-images-0.1.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page