Skip to main content

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

Project description

Dependencies: PIL

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 %}

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.1.8.tar.gz (4.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: galleryserve-0.1.8.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for galleryserve-0.1.8.tar.gz
Algorithm Hash digest
SHA256 49387e143de87bf664bf0cc9e8438d0a05be014e3eed04315bbb610e9ed4f07b
MD5 f6fa7077f41828e5824b2e48dbcfe14e
BLAKE2b-256 f1114fcb1d021673175627eac48b30d5064ffe57ea8bd59a78abd16f9c7bc07d

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