Skip to content
Browse files

Added robots meta tag to views.static.serve to block robots from inde…

…xing and archiving the directory-index static view.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent a2527eb commit 0cb2a0036957b36f3378f73979346238ce490f10 @adrianholovaty adrianholovaty committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/views/
1  django/views/
@@ -55,6 +55,7 @@ def serve(request, path, document_root=None, show_indexes=False):
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en-us" />
+ <meta name="robots" content="NONE,NOARCHIVE" />
<title>Index of {{ directory }}</title>

0 comments on commit 0cb2a00

Please sign in to comment.
Something went wrong with that request. Please try again.