Code

Opened 5 years ago

Closed 5 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:

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.

Attachments (1)

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

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by floguy

comment:1 Changed 5 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.