Optionally append index.html for directories in static media serving view
|Reported by:||floguy||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||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.