浏览代码

HUE-1690 [core] Forceful Browsing / Directory Listing

Abraham Elmahrek 12 年之前
父节点
当前提交
e084947
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/urls.py

+ 1 - 1
desktop/core/src/desktop/urls.py

@@ -39,7 +39,7 @@ def static_pattern(urlprefix, root):
   directory to serve.
   """
   return (r'^%s/(?P<path>.*)$' % urlprefix, 'django.views.static.serve',
-   { 'document_root': root, 'show_indexes': True })
+   { 'document_root': root, 'show_indexes': False })
 
 
 admin.autodiscover()