Django

Code

Ticket #9754 (closed: fixed)

Opened 1 month ago

Last modified 1 month ago

Documentation for overriding static directory-listing template incorrect

Reported by: rnm@whidbey.com Assigned to: nobody
Milestone: Component: Documentation
Version: 1.0 Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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.

Attachments

Change History

12/04/08 13:33:28 changed by ubernostrum

  • status changed from new to closed.
  • resolution set to fixed.

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

12/04/08 13:34:24 changed by ubernostrum

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

12/04/08 13:35:56 changed by ubernostrum

  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

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.


Add/Change #9754 (Documentation for overriding static directory-listing template incorrect)




Change Properties
Action