code: def reverse(viewname, subdomain=None, scheme=None, args=None, kwargs=None,
          current_app=None):
      
      urlconf = settings.SUBDOMAIN_URLCONFS.get(subdomain, settings.ROOT_URLCONF)
  
      domain = get_domain()
      if subdomain is not None:
          domain = '%s.%s' % (subdomain, domain)
  
      path = simple_reverse(viewname, urlconf=urlconf, args=args, kwargs=kwargs,
          current_app=current_app)
      return urljoin(domain, path, scheme=scheme)
docs: Reverses a URL from the given parameters, in a similar fashion to
      :meth:`django.core.urlresolvers.reverse`.
  
      :param viewname: the name of URL
      :param subdomain: the subdomain to use for URL reversing
      :param scheme: the scheme to use when generating the full URL
      :param args: positional arguments used for URL reversing
      :param kwargs: named arguments used for URL reversing
      :param current_app: hint for the currently executing application