Skip to main content

Adapted from imageserve to fit broader gallery needs such as video embedding and content for controls.

Project description

deprecate_cmsplugin_filer

A django app for serving collections of images or videos

Dependencies:

Pillow

To install:

pip install galleryserve

Add 'galleryserve' to INSTALLED_APPS

Configuration Options:

GALLERYSERVE_EXCLUDE_FIELDS - This can be added as a list in your settings.py file to exclude certain fields from appearing in the admin.

Template tag example:

{% load gallerytags %}

{% get_gallery name %}
{% for slide in gallery %}
<div title="{{ slide.title }} - {{ slide.credit }}">
{% if slide.url %}<a href="{{ slide.url }}">{% endif %}
{% if slide.image %}<img src="{{ slide.image.url }}" alt="{{ slide.alt }}" />{% endif %}
{% if slide.url %}</a>{% endif %}
{% if slide.video_url %}<a href="{{ slide.video_url }}">{{ slide.title }}</a>{% endif %}
{{ slide.title }} - {{ slide.credit }}<br />
{{ slide.content|safe }}
</div>
{% endfor %}

Change log:

Changes in 0.2.0 - 05-25-22 Updated build process for py3 compatible app

Changes in 0.1.5 - 06-27-13 Allow for gallery title to be passed in as context variable instead of always treating it as a string.

Changes in 0.1.3 - 11-02-12 Moved to git. Added ANTIALIAS to image processing

Changes in 0.1.2 - 10-22-11 Fail silently on gallery not existing

Changes in 0.1.1 - 9-20-11 Added random boolean to control whether gallery item sort should be random psql command to insert column: alter table galleryserve_gallery ADD column random boolean not null default false;

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

galleryserve-0.2.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

galleryserve-0.2.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file galleryserve-0.2.1.tar.gz.

File metadata

  • Download URL: galleryserve-0.2.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.8.10 Linux/5.4.0-110-generic

File hashes

Hashes for galleryserve-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7b1b1228dbc97f62a10013eb7e9ab08412524c5ef0de266cdd184205548f9052
MD5 a299fae662fbd7da0492f40b72ec6435
BLAKE2b-256 e5e739109ed71461dfa6e01e92f0aa010cab0ca32a8f77467c75d6263c5e732e

See more details on using hashes here.

File details

Details for the file galleryserve-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: galleryserve-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.8.10 Linux/5.4.0-110-generic

File hashes

Hashes for galleryserve-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41ce584c34e34013927ff1e1e55971fd79f7667281e6469d91e334b10b7b9c58
MD5 e14453fb6531a3d5fa8d62e43d4e156b
BLAKE2b-256 5e7aa1ddc79e36c7e508eaaf3957b811591da1e619e717c63d075b109e8764ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page