Opened 7 years ago

Closed 7 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: UI/UX:


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 7 years ago.

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by floguy

comment:1 Changed 7 years ago by jacob

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

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