@register.filter
def microsite_template_path(template_name):
 template_name = theming_helpers.get_template_path(template_name)
 return (template_name[1:] if (template_name[0] == '/') else template_name)

@ register . filter def microsite_template_path ( template_name ) : template_name = theming_helpers . get_template_path ( template_name ) return ( template_name [ 1 : ] if ( template_name [ 0 ] == '/' ) else template_name )
django template filter to apply template overriding to microsites .