django facebook connect 缺少库吗?

发布于 2024-07-12 06:49:15 字数 982 浏览 5 评论 0原文

我正在尝试将一些与照片相关的功能与我的网站和 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 一起使用吗? 或者有什么建议让开发人员更新谷歌代码吗?

谢谢

编辑:找到了这个:“在 15 分钟内将 Facebook Connect 与 Django 集成< /a>" 它使用中间件而不是 django-fbconnect 应用程序。 我更喜欢这个应用程序,因为它更轻,代码更清晰。 此外,它坚持 django 的“一切都是应用程序”文化。 但我想我会研究另一种可能性

编辑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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

小糖芽 2024-07-19 06:49:15

我刚刚添加了丢失的文件。 对于给您带来的不便,我们深表歉意。 :/

I've just added the missing file folks. Sorry for the inconveniences. :/

双马尾 2024-07-19 06:49:15

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.py

it's kind of crappy, but oh well

The missing file has been added to the google code project! :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文