Opened 10 years ago

Closed 10 years ago

#10119 closed (wontfix)

Optionally append index.html for directories in static media serving view

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


Most of the time web servers will look for a file named index.html, if the PATH refers to a directory. It can be useful for debugging to have the Django static file view mimic how production servers will behave. By adding a use_index_html=False parameter to the view, we can optionally enable this feature without any loss of backwards compatibility.

I've added tests and documentation in this patch.

Attachments (1)

use_index_html.diff (3.8 KB) - added by floguy 10 years ago.

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by floguy

Attachment: use_index_html.diff added

comment:1 Changed 10 years ago by Jacob

Resolution: wontfix
Status: newclosed

The serve view isn't intended to pretend to be a real web server. It's deliberately crippled.

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