Django Book 翻译
菜单>:
TOC
返回
原文:
This ensures that a simple ``POST`` to the URL ``example.com/logout`` wont log a user out; in order for a user to log out, the user must request ``example.com/logout`` via ``POST`` *and* send the ``confirm`` ``POST`` variable with a value of ``'true'`` .
翻译:
这就确保了用简单的 ``POST`` 到 ``example.com/logout`` 不会让用户登出;要让用户登出,用户必须通过 ``POST`` 向 ``example.com/logout`` 发送请求 *并且* 发送一个值为 ``'true'`` 的 ``POST`` 变量。
备注:
译者: