Django Book 翻译
菜单>:
TOC
返回
原文:
*Forbids access to user agents in the ``DISALLOWED_USER_AGENTS`` setting* : If provided, this setting should be a list of compiled regular expression objects that are matched against the user-agent header for each incoming request. Heres an example snippet from a settings file:
翻译:
*禁止 ``DISALLOWED_USER_AGENTS`` 列表中所设置的user agent访问* :一旦提供,这一列表应当由已编译的正则表达式对象组成,这些对象用于匹配传入的request请求头中的user-agent域。下面这个例子来自某个配置文件片段:
备注:
译者: