Home

Awesome

Wagtail Stock Images

Version CI

Search stock images (e.g. via Unsplash) and save them to your Wagtail image library.

Search Saving

Requirements

Installation

Install the package

pip install wagtail-stock-images

Add wagtail_stock_images to your INSTALLED_APPS

INSTALLED_APPS = [
    ...
    "wagtail_stock_images",
]

Settings

WAGTAIL_STOCK_IMAGES_SEARCH_ENGINE

Default: wagtail_stock_images.contrib.unsplash.UnsplashSearchEngine

Available search engines

Unsplash

WAGTAIL_STOCK_IMAGES_SEARCH_ENGINE = "wagtail_stock_images.contrib.unsplash.UnsplashSearchEngine"
WAGTAIL_STOCK_IMAGES_UNSPLASH_CLIENT_ID = ""
WAGTAIL_STOCK_IMAGES_UNSPLASH_CLIENT_SECRET = ""
WAGTAIL_STOCK_IMAGES_UNSPLASH_REDIRECT_URI = ""

Custom search engine

from wagtail_stock_images.engine import AbstractSearchEngine

from MyCustomSearchEngine(AbstractSearchEngine):
    ...