Index: django/core/validators.py =================================================================== --- django/core/validators.py (revision 15438) +++ django/core/validators.py (working copy) @@ -40,7 +40,7 @@ class URLValidator(RegexValidator): regex = re.compile( - r'^https?://' # http:// or https:// + r'^(?:http|ftp)s?://' # http:// or https:// r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+[A-Z]{2,6}\.?|' #domain... r'localhost|' #localhost... r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})' # ...or ip