Skip to main content

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

  1. Install with your favorite tool

  2. Add 'random_image' to INSTALLED_APPS.

  3. Migrate your database.

  4. You can now add images in the admin under Random images.

  5. 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-random-image-0.2.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file django-random-image-0.2.tar.gz.

File metadata

File hashes

Hashes for django-random-image-0.2.tar.gz
Algorithm Hash digest
SHA256 2936a478a3a88b6ee8caa80e281fa81886e3dc7ef736a2e7b65a0fc141897680
MD5 342c946343cf210715bf9f8e448c8a94
BLAKE2b-256 5ca48d507de737e258b2b9593b4d4c55b26427adae93d418fc899a9e8de4cdcf

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2 This release

1 file

0.1

1 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