What about
u = urlparse(url)
if u.scheme not in ['http', 'https']:
return 400 u = urlparse(url)
if u.scheme not in ['http', 'https']:
return 400No comments yet.