code: def active_link(context, viewnames, css_class=None, strict=None, *args, **kwargs):
      
      if css_class is None:
          css_class = getattr(settings, 'ACTIVE_LINK_CSS_CLASS', 'active')
  
      if strict is None:
          strict = getattr(settings, 'ACTIVE_LINK_STRICT', False)
  
      request = context.get('request')
      if request is None:
          # Can't work without the request object.
          return ''
      active = False
      views = viewnames.split('||')
      for viewname in views:
          path = reverse(viewname.strip(), args=args, kwargs=kwargs)
          request_path = escape_uri_path(request.path)
          if strict:
              active = request_path == path
          else:
              active = request_path.find(path) == 0
          if active:
              break
  
      if active:
          return css_class
  
      return ''
docs: Renders the given CSS class if the request path matches the path of the view.
      :param context: The context where the tag was called. Used to access the request object.
      :param viewnames: The name of the view or views separated by || (include namespaces if any).
      :param css_class: The CSS class to render.
      :param strict: If True, the tag will perform an exact match with the request path.
      :return: