Django snippets: Better Static Image Serving With Fallback

Screenshot

Serves images from a local directory, but if it doesn't find it locally, then go look for it on a server. This is useful for sites with very large amounts of static content. Instead of copying all your prod images to dev every time you update the database.

You found Martin Geber’s small piece of the WWW. He is student at EUFH, Cologne, Germany working casually at DataCollect & EWE who loves economies, web-technology and all things J.K.R. and P.P.. Learn More.
You hopefully see valid XHTML (rendered by Python-scripts using django) which is beautified by Jon Tan-inspired CSS. In order to accessibility you find microformats like rel-tag, hCard, XFN, xFolk and many more all around this place. Learn More.
Python code is poetry.