django facebook connect 缺少库吗?
我正在尝试将一些与照片相关的功能与我的网站和 Facebook 集成。 我检查了 facebook connect,这似乎是解决这个问题的方法(因为我不想制作应用程序,只需让用户进行身份验证,然后从 facebook 获取一些内容以集成到我们的网站中)
首先,如果您认为有更好的方法来做到这一点(也许是无限会话?)请告诉我。
否则,这就是我遇到的问题...我下载了 django-fbconnect并将其安装为应用程序(根据svn中包含的readme.txt),但python抱怨缺少signals.py,
Error: No module named signals
我认为应该是fbconnect/signals.py,因为这行代码:
from fbconnect.signals import facebook_update
无论如何,有人有经验吗与 django-fbconnect 一起使用吗? 或者有什么建议让开发人员更新谷歌代码吗?
谢谢
编辑2:我联系了 django-fbconnect 的原始作者,他慷慨地用丢失的文件更新了项目(他也在这篇文章中回答了)
I'm trying to integrate some photo related functionality with my site and facebook. I checked out facebook connect and it seems like the way to go for this (since I don't want to make an app, just have users authenticate and then grab some content from facebook to integrate into our site)
First of all, if you think there is a better way to do this (infinite session maybe?) let me know.
Otherwise here is the problem I'm having... I downloaded django-fbconnect and installed it as an app (as per the readme.txt included in the svn) but python is complaining about a missing signals.py
Error: No module named signals
which I assume should be fbconnect/signals.py because of this line of code:
from fbconnect.signals import facebook_update
Anyway does anyone have experience with django-fbconnect? or any advice on getting the developer to update google code?
Thanks
edit: Found this: "Integrating Facebook Connect with Django in 15 minutes" which uses middleware instead of the django-fbconnect app. I prefer the app because it's lighter and the code is clearer. Also, it sticks to the 'everything is an app' culture of django. but I guess I'll look into this other possibility
edit 2: I contacted the original author of django-fbconnect, and he graciously updated the project with the missing file (he also answered on this post)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我刚刚添加了丢失的文件。 对于给您带来的不便,我们深表歉意。 :/
I've just added the missing file folks. Sorry for the inconveniences. :/
van Gale 提出的解决方案(删除引用signals.py 文件的行)工作得很好。 我想我最终可能需要编写自己的 signal.py ...我会及时通知您。
无论如何,这就是答案:
删除由signals.py提供的功能及其所有用途这有点蹩脚,但是哦,好吧丢失的文件已添加到谷歌代码项目中! :)
the solution proposeed by van gale (removing the lines which reference the signals.py file) work well enough. I think I may end up needing to write my own signals.py eventually... I keep you updated.
Anyway here's is the answer:
Remove the functionality and all uses of it, provided by the signals.pyit's kind of crappy, but oh wellThe missing file has been added to the google code project! :)