Object of type date is not JSON serializable

815 views
Skip to first unread message

mick

unread,
Feb 20, 2020, 8:12:11 PM2/20/20
to Django users

TypeError at /addForm4

Object of type date is not JSON serializable
Request Method:POST
Request URL:http://127.0.0.1:8000/addForm4
Django Version:3.0.1
Exception Type:TypeError
Exception Value:
Object of type date is not JSON serializable
Exception Location:C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\Lib\json\encoder.py in default, line 179
Python Executable:C:\Users\Administrator\Scripts\python.exe

Derek

unread,
Feb 21, 2020, 1:16:36 PM2/21/20
to Django users

DHRUVA

unread,
Feb 21, 2020, 1:21:35 PM2/21/20
to django...@googlegroups.com
But I haven't used the JSON .I am just using datefield in forms and models.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/77f62353-4e00-4808-a7e1-4e7f29899c6f%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages