code: def try_url(url_name):
      
      from warnings import warn
      warn("try_url is deprecated, use the url tag with the 'as' arg instead.")
      try:
          url = reverse(url_name)
      except NoReverseMatch:
          return ""
      return url
docs: Mimics Django's ``url`` template tag but fails silently. Used for
      url names in admin templates as these won't resolve when admin
      tests are running.