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;
Metadata
Release files for galleryserve 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| galleryserve-0.1.7.tar.gz | 4.3 kB | Details |
Release files / galleryserve-0.1.7.tar.gz
| Download URL | galleryserve-0.1.7.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b15e733a64239e6128dd36f970c9cd1a3b472a3f28d96edadf54cafb7411ab4f
|
|
BLAKE2b-256 checksum How to use checksums |
e3f0ee7190b29b81c733395c0b1d8f7d2ee378478889b3d200f4c5a0752d661c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |