@register.simple_tag(name='microsite_css_overrides_file')
def microsite_css_overrides_file():
 file_path = configuration_helpers.get_value('css_overrides_file', None)
 if (file_path is not None):
  return "<link href='{}' rel='stylesheet' type='text/css'>".format(static(file_path))
 else:
  return ''

@ register . simple_tag ( name = 'microsite_css_overrides_file' ) def microsite_css_overrides_file ( ) : file_path = configuration_helpers . get_value ( 'css_overrides_file' , None ) if ( file_path is not None ) : return "<link href='{}' rel='stylesheet' type='text/css'>" . format ( static ( file_path ) ) else : return ''
django template tag that outputs the css import for a: {% microsite_css_overrides_file %} .