On 6 December 2010 01:10, Patrick <[email protected]> wrote:
> Hello,
>  I'm new to django and hope I'm not asking an obvious question.
>
> I've tried to install django-socialregistration. I have the api_key
> and secret_key in settings.py, but I keep getting the following error:
> File "C:\projects\sample\Pinax-0.7.3-bundle\env\lib\site-packages
> \django\core\servers\basehttp.py", line 279, in run
>    self.result = application(self.environ, self.start_response)
>
>  File "C:\projects\sample\Pinax-0.7.3-bundle\env\lib\site-packages
> \django\core\servers\basehttp.py", line 651, in __call__
>    return self.application(environ, start_response)
>
>  File "C:\projects\sample\Pinax-0.7.3-bundle\env\lib\site-packages
> \django\core\handlers\wsgi.py", line 241, in __call__
>    response = self.get_response(request)
>
>  File "C:\projects\sample\Pinax-0.7.3-bundle\env\lib\site-packages
> \django\core\handlers\base.py", line 72, in get_response
>    response = middleware_method(request)
>
>  File "C:\projects\sample\Pinax-0.7.3-bundle\mysite\socialregistration
> \middleware.py", line 24, in process_request
>    settings.FACEBOOK_API_KEY, settings.FACEBOOK_SECRET_KEY)
>
>  File "C:\projects\sample\Pinax-0.7.3-bundle\mysite\facebook.py",
> line 204, in get_user_from_cookie
>    cookie = cookies.get("fbs_" + app_id, "")
>
> TypeError: cannot concatenate 'str' and 'tuple' objects

Apparently app_id is a tuple while it shouldn't. Follow from there.

In such situations, I usually put some print statements around the
code from the call stack. Hope that helps.

Konrad

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to