Opened 12 years ago

Closed 12 years ago

#5312 closed (worksforme)

URLField does not validate .it URLs

Reported by: anonymous Owned by: Jacob
Component: Uncategorized Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I get a 'A valid URL is required.' error when I try to enter .it domains.

Change History (1)

comment:1 Changed 12 years ago by James Bennett

Resolution: worksforme
Status: newclosed

Django does not perform any check which would be affected by this; by default, two validation rules are applied:

  1. The URL must begin with "http://" or "https://"
  2. An HTTP request to the URL must result in an HTTP response status code of 200, 301, 302 or 401.

Also, I'm able to successfully submit URLs of .it domains in an app I have on trunk. Marking worksforme and suggesting that you're trying to post un-fetchable links (in which case look at the verify_exists argument to URLField).

Note: See TracTickets for help on using tickets.
Back to Top