Skip to content

Instantly share code, notes, and snippets.

View ntcong's full-sized avatar

Cong Nguyen ntcong

View GitHub Profile
@ntcong
ntcong / README
Created May 14, 2011 10:12 — forked from nicpottier/README
Simple Django template tag to get the image URL for a photologue photo by slug.
This gist is just a simple Django template tag that will output the display
URL for a photologue photo looked up by slug. This satisfies my need for using
Photologue simple as an admin interface to managing photos that I'm including
in flatpages.
Usage
=====
Just put photos.py in your templatetags directory. Make sure photologue
is installed, then create a new photo object.