django - django-activity-stream中action对象和target的区别

标签 django django-activity-stream

使用django-activity-stream,人们可以创建事件流(最近做了什么?),就像在 Facebook、Twitter 或任何其他社交网络中一样。

操作对象目标有什么区别以及用例是什么?

最佳答案

截至http://activitystrea.ms/ :

[Object] describes the primary object of the activity. For instance, in the activity, "John saved a movie to his wishlist", the object of the activity is "movie".

[Target] describes the target of the activity. The precise meaning of the activity's target is dependent on the activities verb, but will often be the object the English preposition "to". For instance, in the activity, "John saved a movie to his wishlist", the target of the activity is "wishlist".

将其视为一个英语句子:

 Actor   Verb       Object       Target
_________________________________________________________ 
 Paul  | uploaded | an artwork | to his collection
 Jane  | added    | an event   | to her personal calendar
 Aidas | asked    | a question | on django discussion  

关于django - django-activity-stream中action对象和target的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33111936/

相关文章:

python - Django 中基于表单的 Kerberos 身份验证

javascript - Jquery tablesorter 插件在 Django 模板中不起作用

python - Django 。 get_profile() 不起作用

python - VSCode 调试 Celery Worker

django - Heroku Piggyback SSL 的安全性如何