Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 0cb2a0036957b36f3378f73979346238ce490f10 1 parent a2527eb
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/views/static.py
View
1  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>
Please sign in to comment.
Something went wrong with that request. Please try again.