'Given a URL conf regex, return a URI template string.'

def get_path_from_regex(self, path_regex):

    path = simplify_regex(path_regex)
    path = path.replace('<', '{').replace('>', '}')
    return path
