【症状】
Django を 1.5.1 から 1.6 へアップグレードしたところ Facebook の OAuth ログインに失敗するようになってしまった。
TypeError: datetime.datetime(2014, 2, 28, 14, 1, 2, 167758, tzinfo=【原因】 Django 1.5.3 よりデフォルトの serializrer が変更されたことが原因のようだ. cf. https://docs.djangoproject.com/en/1.5/ref/settings/#std:setting-SESSION_SERIALIZER cf. https://github.com/ggcarrots/django-carrots/commit/17e9d77affa7681123cf0dc73af2edbd4c428c71 【解決策】 settings.py にて serializer を JSONSerializer から PickleSerializer へ変更する.) is not JSON serializable
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
[symptoms]
Django can't use Facebook OAuth after upgrading from 1.5.1 to 1.6.
A default serializer is changed from Django 1.5.3. cf. https://docs.djangoproject.com/en/1.5/ref/settings/#std:setting-SESSION_SERIALIZER cf. https://github.com/ggcarrots/django-carrots/commit/17e9d77affa7681123cf0dc73af2edbd4c428c71 [solution]
Change the serializer from JSONserializer to PickleSerializer in "settings.py."
Django can't use Facebook OAuth after upgrading from 1.5.1 to 1.6.
TypeError: datetime.datetime(2014, 2, 28, 14, 1, 2, 167758, tzinfo=[cause]) is not JSON serializable
A default serializer is changed from Django 1.5.3. cf. https://docs.djangoproject.com/en/1.5/ref/settings/#std:setting-SESSION_SERIALIZER cf. https://github.com/ggcarrots/django-carrots/commit/17e9d77affa7681123cf0dc73af2edbd4c428c71 [solution]
Change the serializer from JSONserializer to PickleSerializer in "settings.py."
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'