diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-11-27 14:07:04 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-11-27 14:07:04 +0000 |
| commit | 0cb2a0036957b36f3378f73979346238ce490f10 (patch) | |
| tree | c279bfe387ffa32c61e3de91785fffdcc33c4293 | |
| parent | a2527ebe7798345e450432776b2b912d02320f2a (diff) | |
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
| -rw-r--r-- | django/views/static.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/views/static.py b/django/views/static.py index 4ff4313dab..01eaec8990 100644 --- a/django/views/static.py +++ b/django/views/static.py @@ -55,6 +55,7 @@ DEFAULT_DIRECTORY_INDEX_TEMPLATE = """ <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> |
