Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从客户端发送一个动作来做 ups = ups +1 在服务器
ups = models.PositiveSmallIntegerField(_(u'vote count'), default=0)
我该怎么做这些?
谢谢
创建仅允许发布的资源。然后每次你收到一个 post 请求时做 'ups +=1'
另一种方法是对资源使用更新,最好使用“补丁”请求。