2011/12/14 Ahmet Emre Aladağ <aladage...@gmail.com>: > I'm trying to use tschellenbach-Django-facebook for allowing Facebook > logins. But whenever I try to login, I get the following error: > > Exception Type: TypeError at /facebook/connect/ > Exception Value: auth() takes exactly 1 argument (0 given) > > Long trace: http://pastebin.com/hy8BXrkJ > > I investigated the code and saw that load_backend method in contrib/ > auth/__init__.py is problematic and normal logins are also giving the > same error > > http://pastebin.com/CusuwUnY > > i = path.rfind('.') > module, attr = path[:i], path[i+1:] > mod = import_module(module) > cls = getattr(mod, attr) > return cls() > > This code segment makes cls = auth and tries to call auth() > > But auth requires a parameter. Either there should be parameter > provided to cls or cls shouldn't be assigned the value auth. > > > Is this a bug? >
Can you show what the value of settings.AUTHENTICATION_BACKENDS is? Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.