A Django app for displaying a randomly selected image out of a set of django-filer images.
Project description
django-random-image is a simple django app for using an image randomly from a user-defined set of django-filer images in a django template. Every image is only active during a time range set for it.
Requires django-filer.
Quick start
Install with your favorite tool
Add 'random_image' to INSTALLED_APPS.
Migrate your database.
You can now add images in the admin under Random images.
Add {% load random_image %} to your template of choice and use {% random_image as image %} to load a randomly selected image into the image template variable.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-random-image-0.1.tar.gz
.
File metadata
- Download URL: django-random-image-0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1d87996c9719bcaec4f794184fafb4f5b5743d62c7ca5262796ec88c854ddb5 |
|
MD5 | ea9e48b57efabdfba2d5ce35b84cdc07 |
|
BLAKE2b-256 | 69bf12cef5dfea1a58c6d6174211abdc514b895f2e40771d4d2231642715fdea |