def url(value):
    if not url_pattern.match(value):
        raise exceptions.ValidationError("{0} is not a valid URL.".format(value))
    return value
Check if ``value`` is a valid URL.
dataset/ETHPy150Open transcode-de/durga/durga/validators.py/url