views:

62

answers:

0

I've installed django-socialregistration and the facebook-python-sdk dependency. Ran syncdb (so all the tables are there).

I see the Facebook Connect button and when I click on it, I see the FB popup to give permission to my site. However, after that, it goes to www.mysite.com/socialregistration/facebook/login with a 500 Internal Server Error. Ideally this should then redirect to the socialregistration's setup page to let me create a new user.

Right now the socialregistration_facebook table is empty. The User table only has my admin account (which is not logged in).

The error log shows this:

[Sat Jul 24 15:23:40 2010] [error] [client 127.0.0.1]     new_obj = func(obj, *arg_vals), referer: http://$$$.webfactional.com/
[Sat Jul 24 15:23:40 2010] [error] [client 127.0.0.1]   File "/home/$$$/webapps/django/lib/python2.6/django/template/defaultfilters.py", line 33, in _dec, referer: http://$$$.webfactional.com/
[Sat Jul 24 15:23:40 2010] [error] [client 127.0.0.1]     args[0] = force_unicode(args[0]), referer: http://$$$.webfactional.com/
[Sat Jul 24 15:23:40 2010] [error] [client 127.0.0.1]   File "/home/$$$/webapps/django/lib/python2.6/django/utils/encoding.py", line 66, in force_unicode, referer: http://$$$o.webfactional.com/
[Sat Jul 24 15:23:40 2010] [error] [client 127.0.0.1]     s = unicode(s), referer: http://$$$o.webfactional.com/
[Sat Jul 24 15:23:40 2010] [error] [client 127.0.0.1]   File "build/bdist.linux-i686/egg/socialregistration/models.py", line 13, in __unicode__, referer: http://$$$.webfactional.com/
[Sat Jul 24 15:23:40 2010] [error] [client 127.0.0.1]     return u'%s: %s' % (self.user, self.uid), referer: http://$$$.webfactional.com/
[Sat Jul 24 15:23:40 2010] [error] [client 127.0.0.1]   File "/home/$$$/webapps/django/lib/python2.6/django/db/models/fields/related.py", line 288, in __get__, referer: http://$$$.webfactional.com/
[Sat Jul 24 15:23:40 2010] [error] [client 127.0.0.1]     raise self.field.rel.to.DoesNotExist, referer: http://$$$.webfactional.com/
[Sat Jul 24 15:23:40 2010] [error] [client 127.0.0.1] TemplateSyntaxError: Caught DoesNotExist while rendering: , referer: http://$$$.webfactional.com/