'WSGIRequest' object has no attribute 'facebook'
Im trying to implement django-socialregistration, with all dependences included, I just fol开发者_如何学运维lowed those instructions. im having this error after authenticating with facebook:
'WSGIRequest' object has no attribute 'facebook'
C:\Python25\lib\site-packages\socialregistration\views.py in facebook_login
108. if not request.facebook.check_session(request):
what im missing? some middleware excepted? thx :)
Actually, you need
'socialregistration.middleware.FacebookMiddleware'
in MIDDLEWARE_CLASSES
not 'facebook.djangofb..' one.
solved.
adding 'facebook.djangofb.FacebookMiddleware' to MIDDLEWARE_CLASSES in settings.py will attach a facebook object to every incoming request.
加载中,请稍侯......
精彩评论