Super simple way to add placekitten images to your Django templates.
- Download the place_kitten app and place it somewhere on your Python path
- Add
place_kitten
to yourINSTALLED_APPS
- Load the tag in your templates
{% load placekitten %}
requires Django classy tags
Just load the tag and pass in the required image width & height and it prints an image tag for you.
{% placekitten 200 150 %}
# <img src="http://placekitten.com/200/150" width="200" height="150" alt="I can haz placeholder?" />
By default it outputs a colour image, if you would like a Black & White image you can add an optional 3rd paramater.
{% placekitten 200 150 "b&w" %}
# <img src="http://placekitten.com/g/200/150" width="200" height="150" alt="I can haz placeholder?" />