#1013 closed enhancement (wontfix)
[patch] Allow django.views.static to serve index.html instead of a directory listing
Reported by: | 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)
Change History (2)
by , 19 years ago
Attachment: | index-dot-html.diff added |
---|
comment:1 by , 19 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
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.
Patch for django/views/static.py