Django Book 翻译
菜单>:
TOC
返回
原文:
Its perfectly fine to limit this ``
`` directive to a certain directory tree. For example, say you have a legacy PHP application that powers most pages on a domain and you want to install a Django admin site at ``/admin/`` without disrupting the PHP code. To do this, just set the ``
`` directive to ``/admin/`` :
翻译:
精妙之处在于Django将
指令值限定于一个特定的目录树上。举个例子,比如说您有一个在某个域中驱动大多数页面的遗留PHP应用,并且您希望不中断PHP代码的运行而在../admin/位置安装一个Django域。要做到这一点,您只需将
值设置为/admin/即可。
备注:
译者: