flashingpumpkin/django-socialregistration — Issue #117: Session issue with 0.5dev
Author: jorde
Created: 2011-10-24 05:44:55+00:00
State: open

It seems that there's some session bug with 0.5dev branch. Sometimes I can get login to work but most of the times I'm getting the following for both Twitter and Facebook:

Traceback (most recent call last):

File "/sites/.virtualenvs/kippt/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)

File "/sites/.virtualenvs/kippt/local/lib/python2.7/site-packages/django/views/generic/base.py", line 47, in view
return self.dispatch(request, *args, **kwargs)

File "/sites/.virtualenvs/kippt/local/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in dispatch
return handler(request, *args, **kwargs)

File "/sites/.virtualenvs/kippt/src/django-socialregistration/socialregistration/views.py", line 208, in get
client = request.session[self.get_client().get_session_key()]

File "/sites/.virtualenvs/kippt/local/lib/python2.7/site-packages/django/contrib/sessions/backends/base.py", line 47, in __getitem__
return self._session[key]

KeyError: 'socialreg:facebook'