def render(self, context): output = self.nodelist.render(context) if not settings.MEDIA_CACHE_ACTIVE: return output collection = MediaCollection(output, media_store[self.path]) return collection.get_html(settings.MEDIA_CACHE_URL)