Skip to main content

A django port of fakeimg.pl

Project description

django-fakeimg
==============

A django port of fakeimg.pl

Installation
============

Run `pip install django-fakeimg`.

Add `fakeimg` to your `INSTALLED_APPS` setting:

INSTALLED_APPS = (
...
'fakeimg',
)

Example usage
=============

In a template,

<img src="{% url fakeimg_placeholder 100 %}" />
<img src="{% url fakeimg_placeholder 100 200 %}" />
<img src="{% url fakeimg_placeholder 100 200 'ccc' 'ddd'%}" />
<img src="{% url fakeimg_placeholder 100 %}?text=Hello&fond=lobster" />

Project details


Download files

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

Files for django-fakeimg, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size django-fakeimg-0.1.2.tar.gz (112.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page