Added robots meta tag to views.static.serve to block robots from indexing and archiving the directory-index static view.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1452 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-11-27 14:07:04 +00:00
parent a2527ebe77
commit 0cb2a00369
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ DEFAULT_DIRECTORY_INDEX_TEMPLATE = """
<head> <head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en-us" /> <meta http-equiv="Content-Language" content="en-us" />
<meta name="robots" content="NONE,NOARCHIVE" />
<title>Index of {{ directory }}</title> <title>Index of {{ directory }}</title>
</head> </head>
<body> <body>