@contextfunction
def media_url(context, path, safe=None):
 return context['site'].media_url(path, safe)

@ contextfunction def media_url ( context , path , safe = None ) : return context [ 'site' ] . media_url ( path , safe )
returns the media url given a partial path .