def __init__(self, new_url, code=302): RoutingException.__init__(self, new_url) self.new_url = new_url self.code = code
def __init__(self, new_url): RoutingException.__init__(self, new_url) self.new_url = new_url
def __init__(self, new_url, code=301): RoutingException.__init__(self, new_url) self.new_url = new_url self.code = code print(request.endpoint)