Django Book 翻译
菜单>:
TOC
返回
原文:
You can also use ``
`` to match a regular expression. For example, this sets up Django at the site root but explicitly disables Django for the ``media`` subdirectory and any URL that ends with ``.jpg`` , ``.gif`` , or ``.png`` :
翻译:
你也可以使用 ``
`` 来匹配正则表达式。比如,下面的写法将Django定义到网站的根目录,并且显式地将 ``media`` 子目录以及任何以 ``.jpg`` , ``.gif`` , 或者 ``.png`` 结尾的URL屏蔽掉:
备注:
译者: