Added "mimetype" param to django.views.generic.simple.direct_to_template
|Reported by:||Paul Bx <pb@…>||Owned by:||jacob|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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)
Changed 9 years ago by Paul Bx <pb@…>
comment:1 Changed 9 years ago by Simon G. <dev@…>
- Component changed from Template system to Generic views
- Owner changed from adrian to jacob
- Summary changed from [patch] Added "mimetype" param to django.views.generic.simple.direct_to_template to Added "mimetype" param to django.views.generic.simple.direct_to_template
- Triage Stage changed from Unreviewed to Ready for checkin