Table of Contents
pip install djangocms-photo-gallery
Settings:
INSTALLED_APPS: list[str] = [
# …
'easy_thumbnails',
'djangocms_photo_gallery',
]
THUMBNAIL_ALIASES: dict[str, dict[str, dict[str, any]]] = {
# …
'djangocms_photo_gallery':
{
'overview': {
'size': (300, 200),
'crop': 'smart',
'upscale': True
},
'popup':
{
'size': (1400, 1400),
'crop': False,
'upscale': False
},
},
}
The following CSS and JS libraries should be included in you base template, which should be named
base.html
:
Alternatively you can change the templates and use libraries of your choice.
djangocms-photo-gallery
is distributed under the terms of the MIT license.