djangocms-unitegallery
A gallery plugin for django CMS that uses the excellent Unite Gallery jQuery plugin.
Installation
This plugin requires django CMS 3.0 or higher and sorl-thumbnail 12.0 or higher to work.
Run pip install djangocms-unitegallery
Add 'sorl.thumbnail' and 'djangocms_unitegallery' to your INSTALLED_APPS
Run python manage.py migrate
Configuration
By default djangocms-unitegallery generates thumbnails for better perfomance. The default behavior is to generate thumbnails by resizing and cropping images in a square of 250x250 px.
You can disable completely the thumbnail generation and leave Unite Gallery handles images and preview, or you can change the default size of generated thumbnails and/or wether the image ratio should be preserved or not:
DJANGOCMS_UNITEGALLERY_CONFIG = {
'THUMBNAIL_ENABLED': true,
'THUMBNAIL_MAX_WIDTH': 250,
'THUMBNAIL_MAX_HEIGHT': 250,
'THUMBNAIL_PRESERVE_RATIO': False,
}
If you set THUMBNAIL_PRESERVE_RATIO to False, thumbnails will be cropped to match the configured width and height. If you set THUMBNAIL_PRESERVE_RATIO to True, thumbnails will just be resized to match the configured max width (if image is landscape) or height (if image is portrait).
Metadata
Release files for djangocms-unitegallery 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| djangocms-unitegallery-0.1.0.tar.gz | 412.2 kB | Without provenance | Details for djangocms-unitegallery-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| djangocms_unitegallery-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for djangocms_unitegallery-0.1.0-py2.py3-none-any.whl |
Total release size: 869.3 kB
Release files / djangocms-unitegallery-0.1.0.tar.gz
| Download URL | djangocms-unitegallery-0.1.0.tar.gz |
|---|---|
| Size | 412.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
738ebbb7f13e1e04111f4e10ccf5af7a606ee1e76e8553b583ddb379c726ef55
|
|
BLAKE2b-256 checksum How to use checksums |
2744e273b36281e1a2ab5a84c60edeb30daed0726826a80c567c5158868589a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / djangocms_unitegallery-0.1.0-py2.py3-none-any.whl
| Download URL | djangocms_unitegallery-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 457.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5c2fb0ee45ee0b395835fa337435b43a1deb7d77afbbe0fe47654dd43507322a
|
|
BLAKE2b-256 checksum How to use checksums |
abd07d44f6c8dcd2e1ec1951cabc5a3e0e7b00f61dc3fe38be691553caef35f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for djangocms-unitegallery 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.