Opened 19 years ago

Closed 19 years ago

Last modified 17 years ago

#1013 closed enhancement (wontfix)

[patch] Allow django.views.static to serve index.html instead of a directory listing

Reported by: richie@… Owned by: Adrian Holovaty
Component: Core (Management commands) Version: dev
Severity: normal Keywords: index.html static
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

This patch adds an optional parameter called default to django.views.static.serve, which gives the name of a file (eg. index.html) to use in place of a directory listing. This allows django-admin.py runserver to better simulate a real webserver.

Attachments (1)

index-dot-html.diff (1.6 KB ) - added by richie@… 19 years ago.
Patch for django/views/static.py

Download all attachments as: .zip

Change History (2)

by richie@…, 19 years ago

Attachment: index-dot-html.diff added

Patch for django/views/static.py

comment:1 by Jacob, 19 years ago

Resolution: wontfix
Status: newclosed

django.static.serve is specifically desgined not to emulate a "real" web server; not serving index.html is by design.

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