Skip to main content

Cloudinary support for Wagtail CMS

Project description

# Use cloudinary within wagtail

## About
This package adds Cloudinary support to Wagtail CMS

## Installation

`pip install wagtailcloudinary`

Wagtail 2.4 and Django 2.1 are supported.

## Configuration
Add app wagtailcloudinary in your INSTALLED_APPS list. Also add cloudinary if not already done.

```
INSTALLED_APPS = [
...
'cloudinary',
'wagtailcloudinary',
...
]
```

in settings.py put your cloud_name, api_key and apy_secret into cloudinary configuration

```
import cloudinary

cloudinary.config(
cloud_name=<YOUR_CLOUDINARY_CLOUD_NAME>,
api_key=<YOUR_CLOUDINARY_API_KEY>,
api_secret=<YOUR_CLOUDINARY_API_SECRET>,
)
```

Next edit your urls.py like this:

```
from wagtailcloudinary.sites import site

urlpatterns = [
...
url(r'^wagtailcloudinary', include(site.urls, namespace="wagtailcloudinary")),
...
]
```

## Usage

in models.py

```
from wagtail.wagtailadmin.edit_handlers import FieldPanel
from wagtail.wagtailcore.models import Page
from wagtailcloudinary.fields import CloudinaryField, CloudinaryWidget

class SomePage(Page):
image = CloudinaryField()

content_panels = Page.content_panels + [
FieldPanel('image', widget=CloudinaryWidget),
]
```

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

wagtailcloudinary-0.5.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

wagtailcloudinary-0.5-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file wagtailcloudinary-0.5.tar.gz.

File metadata

  • Download URL: wagtailcloudinary-0.5.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for wagtailcloudinary-0.5.tar.gz
Algorithm Hash digest
SHA256 89a5b30bfa8a0b3fe44c5c2743d64161cd39edf6ad0d17bf00e11448b468c565
MD5 a17629a1ea88c805c88265d50e22ab6b
BLAKE2b-256 3441300ae69d95c2180d59d55ec9fb9ecd765b5e43a86457dc7b0e1166be8743

See more details on using hashes here.

File details

Details for the file wagtailcloudinary-0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for wagtailcloudinary-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a31f39ef2b41023cd3de48d5d3b7d7cb707df56b9e4aefc0e40cec2112a1ccdc
MD5 91ac436b80e53d816bf0fd77cdb65940
BLAKE2b-256 70e3003b0cd0075b939d51323ba42b4e944afdf01fa040670d07ea738e8810ef

See more details on using hashes here.

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