【发布时间】:2013-01-31 10:39:37
【问题描述】:
当用户向图像添加评论时,
包括图像作者在内的一些用户通过推送通知获得通知。
我让它在常规视图中工作。
现在我采用了美味的框架,并转换了这个视图。
class CommentResource(ModelResource):
..
def obj_create(....):
#send notifications
#actually create the comment object
在 API 中使用 sending notifications 感觉很奇怪,所以我在问
如果这是一个很好的做法。
【问题讨论】: