Have a look at http://github.com/peritus/django_hashedmedia/
That's the far superior solution.
Also this is a dup of http://www.djangosnippets.org/snippets/946/, which includes additional information on usage and possible issues
i knew it had to be a dupe, i just couldn't find it for some odd reason... why is the django_hashedmedia superior?
django_hashedmedia is good if you are distributing your media off more than one host (because then modification times may differ), otherwise, i think it's a bit much for a something that can be solved using a simple templatetag, also you have to call the management command each time you make changes.
Powered by Django.
Learn more about this site.
Read the FAQ.
Terms of service
Backend code by James Bennett, Charles Leifer and other contributors, design by Jeff Croft. Hosted by Heroku