Django Vote Up / Down方法 [英] Django Vote Up/Down method
问题描述
我正在制作一个小应用程序,让用户可以向上或向下投票。我正在使用Django(和新的!)。
I am making a small app that lets users vote items either up or down. I'm using Django (and new to it!).
我只是想知道,向用户介绍upvote链接的最好方法是什么。作为一个链接,按钮或其他东西?
I am just wondering, what is the best way to present the upvote link to the user. As a link, button or something else?
我已经在PHP中使用不同的框架完成了这样的事情,但我不知道我是否可以做同样的事情办法。我应该有一个上/下表决方法,然后显示一个指向用户的链接来点击。点击它,它执行该方法并刷新页面?
I have already done something like this in php with a different framework but I'm not sure if I can do it the same way. Should I have a method for up/down vote and then display a link to the user to click. When they click it, it performs the method and refreshes the page?
推荐答案
只需即插即用:
RedditStyleVoting
对任何具有django投票的模型实施reddit风格投票
http://code.google.com/p/django-voting/wiki/RedditStyleVoting
这篇关于Django Vote Up / Down方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!