    <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>
      <h1>Index of {{ directory }}</h1>
      <ul>
        {% for f in file_list %}
 
</s> remove       <li><a href="{{ f }}">{{ f }}</a></li>
 </s> add       <li><a href="{{ f|urlencode }}">{{ f|escape }}</a></li> </s> remove     <h1>Index of {{ directory }}</h1>
 </s> add     <h1>Index of {{ directory|escape }}</h1>
    <title>Index of {{ directory|escape }}</title>
    <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|escape }}</title>
    </head>
    <body>
      <h1>Index of {{ directory }}</h1>
      <ul>
        {% for f in file_list %}
keep keep keep keep replace keep keep keep keep keep
 Fixed #1366 -- Static-file view now escapes file names. Thanks, Kieran Holland

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2322 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/views/static.py