I have a question
I use xpath to get item['releaseday'] from the site.
When xpath didn't get the value
This will throw an error:
django.core.exceptions.ValidationError: [u"'' value has an invalid date format. It must be in YYYY-MM-DD format."]
in my models.py I set null = True and blank = True it seems that does not work
releaseday = models.DateField(null=True,blank=True)
I am trying to add this code but not work
if 'releaseday' not in item: item['releaseday']=''
How can i edit ??? Please help me, thanks.
source share