"datatime" objects can not be JSON-serialized to be held in sessions
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I am using Django 1.6 beta 3.
In my view I try:
now = datetime.datetime.now(pytz.utc) request.session['lstts'] = now
But I get the following error: http://dpaste.com/hold/1375033/
I presume the reason is the new serializer for session objects. I also presume that "datatime" objects must be supported, because they are quite useful and used.