Django Book 翻译
菜单>:
TOC
返回
原文:
We naively use a combination of ``len()`` and ``split()`` to count the number of words. If the user has entered too few words, we raise a ``ValidationError`` . The string attached to this exception will be displayed to the user as an item in the error list.
翻译:
我们简单地使用了len()和split()的组合来计算单词的数量。如果用户输入了过少的词,我们扔出一个ValidationError。这个exception的错误信息会被显示在错误列表里。
备注:
译者: