def image_tag(url): return format_html( "<img src='{root}{url}' />".format( root=settings.MEDIA_URL or '', url=url, ) )