Opened 16 years ago

Closed 16 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
Pull Requests:How to create a pull request

Description

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.

Change History (2)

by floguy, 16 years ago

Attachment: use_index_html.diff added

comment:1 by Jacob, 16 years ago

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