Skip to main content

galleryserve

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;

Release files for galleryserve 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for galleryserve 0.2.2
File Size Uploaded
galleryserve-0.2.2.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for galleryserve 0.2.2
File Interpreter ABI Platform
galleryserve-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / galleryserve-0.2.2.tar.gz

Download URL galleryserve-0.2.2.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5c2e82376b80b3dbea6175e687b46789b3aba2b97f596532db94303609b969b2
BLAKE2b-256 checksum
How to use checksums
e7c8c3c3ca37cf265f57a880dbd320e9f10bd434d8d8dc7f277ca2006a0b2a5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.8 CPython/3.8.10 Linux/5.4.0-110-generic

Release files / galleryserve-0.2.2-py3-none-any.whl

Download URL galleryserve-0.2.2-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
268ce3761ec1bcfde4f5fb95d7b85056bc4c422aa284a7e1a8a1b4172be86603
BLAKE2b-256 checksum
How to use checksums
1ba92862553bdae43f72ce7db7114bb91262fe7ce74150fe0eba6b81d4cdd2a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.8 CPython/3.8.10 Linux/5.4.0-110-generic

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page