Skip to content

vicktornl/wagtail-stock-images

Repository files navigation

Wagtail Stock Images

Version CI

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

Search Saving

Requirements

  • Python 3
  • Django >= 2
  • Wagtail >= 3

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):
    ...

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published