When I try to login to the admin site I get a TypeError : a2b_base64()
argument 1 must be string or read-only character buffer, not
array.array

in django.models.core.Session::get_decoded(), line 83, the value of
self.session_data which is being passed to a2b_base64 is array('c',
'KGRwMQpTJ3Rlc3Rjb29raWUnCnAyClMnd29ya2VkJwpwMwpzLmQzZWUzNDJiMjkzNTZhZDAxYWNl\nYjI4NDUzNmRlZDQ2\n')

type(self.session_data) == <type 'array.array'>, but only "KGRw...Q2\n"
is in the database; I don't know where the 'c' is coming from.
Interestingly, session_data[0] is not 'c', but 'K', and session_data[1]
is not the session data, but 'G', so I'm a bit confused as to what is
going on, since what looks like an array is acting like the string it's
supposed to be.


I /did/ extend/replace auth.user, and so couldn't use django-admin to
create a superuser. Could something I didn't set up in the db be
causing this? or is this weirder than that?

Thoughts?

Reply via email to