[openstack-dev] [horizon] django-openstack-auth with Django 1.6

Gabriel Hurley Gabriel.Hurley at nebula.com
Thu Oct 17 18:12:43 UTC 2013


FWIW, Django 1.6 is not officially supported with Horizon yet.

That aside, pickle is generally a security risk (it's equivalent to eval), hence the move away from it in Django. We'll want to see what we can do about making things properly serializable with the JSON serializer in Icehouse. It shouldn't be hard.

Thank you for noting the temporary fix, though.


-          Gabriel

From: Cristian Tomoiaga [mailto:ctomoiaga at gmail.com]
Sent: Thursday, October 17, 2013 11:06 AM
To: openstack-dev at lists.openstack.org
Subject: [openstack-dev] [horizon] django-openstack-auth with Django 1.6

Hello,

It seems Django 1.6 switched from Pickle to Json for session serialization.
https://docs.djangoproject.com/en/1.6/topics/http/sessions/#session-serialization

For anyone getting the error about Token not being serializable, just add the following in settings.py:
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
until this is "fixed".

Out of curiosity, should everything be switched to Json (make Token serializable), or Pickle will be used in the foreseeable future ?

--
Regards,
Cristian Tomoiaga
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20131017/662476f3/attachment.html>


More information about the OpenStack-dev mailing list