code: def _get_named_patterns():
      
      resolver = urlresolvers.get_resolver(None)
      patterns = sorted([(key, value[0][0][0])
                         for key, value in resolver.reverse_dict.items()
                         if isinstance(key, string_types)
                         ])
      return patterns
docs: Returns list of (pattern-name, pattern) tuples