Opened 18 years ago
Closed 18 years ago
#3034 closed enhancement (fixed)
Added "mimetype" param to django.views.generic.simple.direct_to_template
Description ¶
I think direct_to_template is the only generic view that doesn't take a "mimetype" param. This patch remedies that. The use-case that drove me to write this was wanting robots.txt to have the right Content-Type. I'm sure there are others (CSS generation and JS generation come to mind).
I've tested this with a dummy project and via runtests.py (though direct_to_template doesn't seem to be covered).
Change History (3)
by , 18 years ago
Attachment: | dtt_mimetype.diff added |
---|
comment:1 by , 18 years ago
Component: | Template system → Generic views |
---|---|
Owner: | changed from | to
Summary: | [patch] Added "mimetype" param to django.views.generic.simple.direct_to_template → Added "mimetype" param to django.views.generic.simple.direct_to_template |
Triage Stage: | Unreviewed → Ready for checkin |
comment:2 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
the patch