Issue with parsing date in legacy database | Django inspectdb
I have an application running in MySQL. I want to create an API, so i tried with Django Rest Framework.
Created the django models by using,
manage.py inspectdb > models.py
Everything works fine. But I have a datefield in the existing database with value: 0000-00-00 00:00:00. While accessing this data, I got the below error,
'str' object has no attribute 'tzinfo'
Is there any way to ignore this error? I tried passing null=True, blank=True in models.py. But no use.
