Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

from django 1.4 to django 1.5- argument 'verify_exists' what s replacement?

I'm try to fix an app that worked with django 1.4 within a new installation where I'm using Django 1.5 when I try to syncdb I have:

   TypeError: __init__() got an unexpected keyword argument 'verify_exists'

That's because my app model.py have inside:

   link = models.URLField(verify_exists=True, max_length=255, null=True, blank=True)

with what I d replace 'verify_exists' to make it compatible with Django1.5?

like image 701
Alex Garulli Avatar asked Sep 02 '25 09:09

Alex Garulli


2 Answers

If you really need to verify the URL exists, you should do so in your form or model validation methods.

like image 106
Daniel Roseman Avatar answered Sep 05 '25 00:09

Daniel Roseman


Try Removing the argument

verify_exists = True

(if this argument is not in use..)

And use as below :

 link = models.URLField(max_length=255, null=True, blank=True)
like image 24
Rajan Rai Avatar answered Sep 04 '25 23:09

Rajan Rai