#9754 closed (fixed)
Documentation for overriding static directory-listing template incorrect
Reported by: | 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 , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 16 years ago
comment:3 by , 16 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.
(In [9566]) Fixed #9754: static-serving view now uses correct template name for directory indexes.