Django threadedcomments - 注册用户

发布于 2024-08-19 14:51:25 字数 156 浏览 3 评论 0原文

我计划使用 Django 的评论系统(带有 threadedcomments 应用程序)。 由于我只允许注册用户发帖,因此不需要强制的用户/网址/电子邮件字段(只需要一个外键(用户))。

我有一种感觉,我不是第一个(也不是第 1000 个)这样做的,任何人都可以指出我的任何实现吗?

I am planning to use Django's comment system (with the threadedcomments app).
Since I only allow registered users to post, the mandatory user/url/email fields are not needed (just want a ForeignKey(User)).

I have a feeling I am not the first (nor the 1000th) to do this, can anyone point me to any implementations ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

淤浪 2024-08-26 14:51:25

我想这就是你所需要的。
http://api.rst2a.com/1.0/rst2/html?uri=http%3A//django-threadedcomments.googlecode.com/svn/trunk/docs/api.txt&style=佐普

FreeThreadedComment
FreeThreadedComment 更适合允许几乎任何人对项目发表评论。它不会与特定用户相关联,而是要求提供一些附加信息,例如姓名和电子邮件。

线程评论
ThreadedComment 对于允许注册用户发表评论非常有用。正是由于这个原因,User 需要一个外键。

I think this is what you need.
http://api.rst2a.com/1.0/rst2/html?uri=http%3A//django-threadedcomments.googlecode.com/svn/trunk/docs/api.txt&style=zope

FreeThreadedComment
FreeThreadedComment is better suited for allowing just about anyone to post comments on an item. Instead of being associated with a particular user, instead it asks for some additional information like name and e-mail.

ThreadedComment
ThreadedComment is useful for allowing registered users to comment. It is for this reason that there is a required foreign key to User.

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