Hi how do I get DateTimeField from Mysql database in Django in json format? I got an error when I executed the code 'Date.time cannot be serialized in json'(data holds a lot of values):
data = json.dumps(data)
But this was fixed by adding
ALL_data = serializers.serialize("json", data, ensure_ascii=False)
But now I get 'str' object has no attribute '_meta'.