Permalink
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: http://code.djangoproject.com/svn/django/trunk@1452 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent a2527eb commit 0cb2a0036957b36f3378f73979346238ce490f10 @adrianholovaty adrianholovaty committed Nov 27, 2005
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/views/static.py
@@ -55,6 +55,7 @@ def serve(request, path, document_root=None, show_indexes=False):
<head>
<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>
</head>
<body>

0 comments on commit 0cb2a00

Please sign in to comment.