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
.
- Install with your favorite tool
- Add
'random_image'
toINSTALLED_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 theimage
template variable.