https://code-maven.com/serialize-datetime-object-as-json-in-python
On Thursday, 20 February 2020 22:12:11 UTC+2, mick wrote: > > 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 > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/77f62353-4e00-4808-a7e1-4e7f29899c6f%40googlegroups.com.

