@register.function
@jinja2.contextfunction
def media(context, url):
 return urljoin(settings.MEDIA_URL, cache_buster(context, url))

@ register . function @ jinja2 . contextfunction def media ( context , url ) : return urljoin ( settings . MEDIA_URL , cache_buster ( context , url ) )
adds media-related context variables to the context .