Re: models.URLField with verify_exists=True pass non existent Urls to DB

2010-06-17 Thread Karen Tracey
On Wed, Jun 16, 2010 at 5:14 PM, aurel...@gmail.com wrote: > Thanks Karen! > > Django 1.0 Web Site Development book (code example is from that book) > has following paragraph: > "By specifying correct field types in our form, we don't have to > implement any > additional input validation. For exam

Re: models.URLField with verify_exists=True pass non existent Urls to DB

2010-06-16 Thread aurel...@gmail.com
Thanks Karen! Django 1.0 Web Site Development book (code example is from that book) has following paragraph: "By specifying correct field types in our form, we don't have to implement any additional input validation. For example, Django will automatically make sure that the user enters a valid URL

Re: models.URLField with verify_exists=True pass non existent Urls to DB

2010-06-16 Thread Karen Tracey
On Wed, Jun 16, 2010 at 1:29 PM, aurel...@gmail.com wrote: > Hi, > > I have a model with URLField. Parmether verify_exists is set to True, > but when I enter url that does not exists (e.g. http://foobarbarfoo.com, > or http://www.google.com/foobar) they somehow manage to get to the > DB. > > Shoul

models.URLField with verify_exists=True pass non existent Urls to DB

2010-06-16 Thread aurel...@gmail.com
Hi, I have a model with URLField. Parmether verify_exists is set to True, but when I enter url that does not exists (e.g. http://foobarbarfoo.com, or http://www.google.com/foobar) they somehow manage to get to the DB. Should model report error? Or I do not understand docs: "If True (the default),