Changeset 9566
- Timestamp:
- 12/04/08 13:33:28 (1 month ago)
- Files:
-
- django/trunk/django/views/static.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/views/static.py
r8984 r9566 29 29 of the directory. This index view will use the template hardcoded below, 30 30 but if you'd like to override it, you can create a template called 31 ``static/directory_index ``.31 ``static/directory_index.html``. 32 32 """ 33 33 … … 92 92 def directory_index(path, fullpath): 93 93 try: 94 t = loader.get_template('static/directory_index ')94 t = loader.get_template('static/directory_index.html') 95 95 except TemplateDoesNotExist: 96 96 t = Template(DEFAULT_DIRECTORY_INDEX_TEMPLATE, name='Default directory index template')
