Question

I am trying to add this URL to a URLField in a model with URL validation: http://www.scscourt.org. Obviously the URL exists, but for whatever reason django won't validate it -- and I can't ping it either, but that could be a separate issue. Ideas?

Edit: Additionally, I have logged into the server and tried nslookup from there -- it finds the DNS info, and a wget returns the index page -- so my server can see it.

Was it helpful?

Solution

Behind the scenes DJango sends a HEAD request to http://www.scscourt.org/. When you do this ( I did it with fiddler) they are actually denying you and sending back a 403.

You could technically set verify_exists=False for that particular link.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top