Django Book 翻译
菜单>:
TOC
返回
原文:
Lets take a look at a few quick examples. This simplistic view sets a ``has_commented`` variable to ``True`` after a user posts a comment. Its a simple (but not particularly secure) way of preventing a user from posting more than one comment:
翻译:
我们来看个简单的例子。这是个简单到不能再简单的例子:在用户发了一次评论后将 ``has_commented`` 设置为 ``True`` ,这是个简单(但不很安全)的、防止用户多次评论的方法。
备注:
译者: