@register.simple_tag(name='favicon_path')
def favicon_path(default=getattr(settings, 'FAVICON_PATH', 'images/favicon.ico')):
 return staticfiles_storage.url(configuration_helpers.get_value('favicon_path', default))

@ register . simple_tag ( name = 'favicon_path' ) def favicon_path ( default = getattr ( settings , 'FAVICON_PATH' , 'images/favicon.ico' ) ) : return staticfiles_storage . url ( configuration_helpers . get_value ( 'favicon_path' , default ) )
django template tag that outputs the configured favicon: {% favicon_path %} .