Skip to content

Kotti/kotti_image

Repository files navigation

kotti_image

This is an extension to Kotti that allows to add images to your site.

This package is only compatible with Kotti versions >= 1.3.0-dev and later. Earlier versions of Kotti included the Image content type and everything directly related.

build_status_stable pypi license

Find out more about Kotti

Development happens at https://github.com/Kotti/kotti_image

Setup

Kotti 1.x

You don't need to do anything. kotti_image is a requirement of Kotti and automatically setup for you.

Kotti 2.x

To enable the extension in your Kotti site (pip install kotti_image), activate the configurator:

kotti.configurators =
    kotti_image.kotti_configure

Configuration

The initial release doesn't provide any configuration options. Custom configuration of image scales will be available in future releases.

Upgrading

If you are upgrading from a previous version you might have to migrate your database. The migration is performed with alembic and Kotti's console script kotti-migrate. To migrate, run kotti-migrate <your.ini> upgrade --scripts=kotti_image:alembic (or kotti-migrate <your.ini> upgrade_all to run all Kotti and add on migrations).

For integration of alembic in your environment please refer to the alembic documentation. If you have problems with the upgrade, please create a new issue in the tracker.

Development

build_status_master

Contributions to kotti_image are highly welcome. Just clone its Github repository and submit your contributions as pull requests.