Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#9754 closed (fixed)

Documentation for overriding static directory-listing template incorrect

Reported by: rnm@… Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The documentation at http://docs.djangoproject.com/en/dev/howto/static-files/ says to use a template called "static/directory_index.html" to override the default template for directory listings. This doesn't work, however. Inspection of the code in /django/views/static.py indicates the template should be called "static/directory_index", which does work.

Change History (3)

comment:1 by James Bennett, 15 years ago

Resolution: fixed
Status: newclosed

(In [9566]) Fixed #9754: static-serving view now uses correct template name for directory indexes.

comment:2 by James Bennett, 15 years ago

(In [9567]) [1.0.X] Fixed #9754: static-serving view now uses correct template name for directory indexes. Was [9566] in trunk.

comment:3 by James Bennett, 15 years ago

This wasn't actually a documentation bug; once upon a time the template loader would treat 'static/directory_index' as 'static/directory_index.html', and apparently this code was not updated when the loader was tightened up to require the file extension.

Note: See TracTickets for help on using tickets.
Back to Top