Django

Code

Changeset 9566

Show
Ignore:
Timestamp:
12/04/08 13:33:28 (1 month ago)
Author:
ubernostrum
Message:

Fixed #9754: static-serving view now uses correct template name for directory indexes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/views/static.py

    r8984 r9566  
    2929    of the directory.  This index view will use the template hardcoded below, 
    3030    but if you'd like to override it, you can create a template called 
    31     ``static/directory_index``. 
     31    ``static/directory_index.html``. 
    3232    """ 
    3333 
     
    9292def directory_index(path, fullpath): 
    9393    try: 
    94         t = loader.get_template('static/directory_index') 
     94        t = loader.get_template('static/directory_index.html') 
    9595    except TemplateDoesNotExist: 
    9696        t = Template(DEFAULT_DIRECTORY_INDEX_TEMPLATE, name='Default directory index template')