I'm migrating from Django 1.5.8 to 1.6.5. I've solved quite a lot of bug related to my code, but this time I think it could be a bug. Can anybody help me to fix it or should I post it to django-developers?
Request Method: GET Request URL: http://127.0.0.1:8000/ Django Version: 1.6.5 Python Version: 2.7.8 Traceback: File "/Users/arkaitz/Documents/workspace/af73-dev/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 199. response = middleware_method(request, response) File "/Users/arkaitz/Documents/workspace/af73-dev/lib/python2.7/site-packages/django/contrib/sessions/middleware.py" in process_response 38. request.session.save() File "/Users/arkaitz/Documents/workspace/af73-dev/lib/python2.7/site-packages/django/contrib/sessions/backends/cached_db.py" in save 62. super(SessionStore, self).save(must_create) File "/Users/arkaitz/Documents/workspace/af73-dev/lib/python2.7/site-packages/django/contrib/sessions/backends/db.py" in save 57. session_data=self.encode(self._get_session(no_load=must_create)), File "/Users/arkaitz/Documents/workspace/af73-dev/lib/python2.7/site-packages/django/contrib/sessions/backends/base.py" in encode 87. serialized = self.serializer().dumps(session_dict) File "/Users/arkaitz/Documents/workspace/af73-dev/lib/python2.7/site-packages/django/core/signing.py" in dumps 88. return json.dumps(obj, separators=(',', ':')).encode('latin-1') File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py" in dumps 250. sort_keys=sort_keys, **kw).encode(obj) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py" in encode 207. chunks = self.iterencode(o, _one_shot=True) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py" in iterencode 270. return _iterencode(o, 0) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py" in default 184. raise TypeError(repr(o) + " is not JSON serializable") Exception Type: TypeError at / Exception Value: datetime.datetime(2014, 7, 15, 21, 34, 11, 687676) is not JSON serializable Thank you in advance for your help! Arkaitz Mugica Islas arkaitzmug...@gmail.com -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/38EEA362-84F1-4506-B8B2-F2D3FC3CDD63%40gmail.com. For more options, visit https://groups.google.com/d/optout.