Skip to content

shucao/django-fakeimg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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" />

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages