#1013 closed enhancement (wontfix)
[patch] Allow django.views.static to serve index.html instead of a directory listing
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.
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