Returns list of (pattern-name, pattern) tuples

def _get_named_patterns():
    """Returns list of (pattern-name, pattern) tuples"""
    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