I am creating a django application and I have the following problem: this error is displayed when I want to set the date:
ValidationError [u"'12/06/2012' value has an invalid date format. It must be in YYYY-MM-DD format."]
For this model:
class ModelA(models.Model): date1 = models.DateField(null=True) date2 = models.DateField(null=True)
How to set DateField %m/%d/%Y format.
The "input_formats" option is not recognized.
Thanks!
python django format
jartymcfly
source share